tbrehm
2008-09-21 8dd29e227f44e2379a0a72a4f60130b24e54a14b
interface/lib/classes/listform_actions.inc.php
@@ -38,8 +38,8 @@
class listform_actions {
   
   private $id;
   private $idx_key;
   private $DataRowColor;
   public $idx_key;
   public $DataRowColor;
   public  $SQLExtWhere = '';
   public  $SQLOrderBy = '';
   
@@ -82,7 +82,7 @@
      
   }
   
   private function prepareDataRow($rec)
   public function prepareDataRow($rec)
    {
      global $app;
      
@@ -96,6 +96,11 @@
      foreach($app->listform->listDef['item'] as $field) {
         $key = $field['field'];
         if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
            if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
               // Set a additional image variable for bolean fields
               $rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
            }
            //* substitute value for select field
            $rec[$key] = @$field['value'][$rec[$key]];
         }
      }