File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function onShow() {
2828 // $app->listform->listDef["page_params"] = "&id=".$app->tform_actions->id."&next_tab=".$_SESSION["s"]["form"]["tab"];
2929 $ app ->listform ->listDef ["page_params " ] = "&id= " .$ this ->form ->id ."&next_tab= " .$ _SESSION ["s " ]["form " ]["tab " ];
3030 $ listTpl ->setVar ('parent_id ' ,$ this ->form ->id );
31+ $ listTpl ->setVar ('theme ' , $ _SESSION ['s ' ]['theme ' ]);
3132
3233 // Generate the SQL for searching
3334 if ($ app ->listform ->listDef ["auth " ] != 'no ' ) {
@@ -73,6 +74,11 @@ function onShow() {
7374 foreach ($ app ->listform ->listDef ["item " ] as $ field ) {
7475 $ key = $ field ["field " ];
7576 if ($ field ['formtype ' ] == "SELECT " ) {
77+ if (strtolower ($ rec [$ key ]) == 'y ' or strtolower ($ rec [$ key ]) == 'n ' ) {
78+ // Set a additional image variable for bolean fields
79+ $ rec ['_ ' .$ key .'_ ' ] = (strtolower ($ rec [$ key ]) == 'y ' )?'list_icon_true.png ' :'list_icon_false.png ' ;
80+ }
81+ //* substitute value for select field
7682 $ rec [$ key ] = $ field ['value ' ][$ rec [$ key ]];
7783 }
7884 // Create a lowercase version of every item
You can’t perform that action at this time.
0 commit comments