select-table and select-part_pkg updates so we can use select-part_pkg as an edit...
[freeside.git] / httemplate / elements / select-table.html
index 5d6c4a8..7339f36 100644 (file)
@@ -100,6 +100,7 @@ if ( $opt{'records'} ) {
     'table'     => $opt{'table'},
     'hashref'   => ( $opt{'hashref'} || {} ),
     'extra_sql' => ( $opt{'extra_sql'} || '' ),
+    'order_by'  => ( $opt{'order_by'} || "ORDER BY $name_col" ),
   });
 }