X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-table.html;h=4ac0887fd51bf95fa0d488cbf6bd580da078d53d;hb=8c914e2614a40b95291df00d0b8dbd5766f611b5;hp=e7363880165ab6f8a7ab15d2f464c88d686cee97;hpb=69bdaccf38c8f1b7471ff13354ccbcbb6aa20096;p=freeside.git diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index e73638801..4ac0887fd 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -9,6 +9,7 @@ Example: ## 'table' => 'table_name', 'name_col' => 'name_column', #or method if you pass an order_by + # order_by is currently broken, though #strongly recommended (you want your forms to be "sticky" on errors, right?) 'curr_value' => 'current_value', @@ -82,13 +83,14 @@ Example: % || ( $value eq $pre_opt ); % } % unless ( $opt{'multiple'} || $opt{'disable_empty'} ) { - % } +% # XXX fix this eventually, when we have time to test it % foreach my $record ( sort { $a->$name_col() cmp $b->$name_col() % || $a->$key() <=> $b->$key() % } @@ -115,7 +117,7 @@ Example: ? &{ $opt{'label_callback'} }( $record ) : $record->$name_col() |h - %> + %> % } % while ( @post_options ) { @@ -125,7 +127,7 @@ Example: % || ( $value eq $post_opt ); % }