Commits

robr...@localhost  committed 0e2464b

Fixed minor bug when displaying boolean fields in admin.php generated from MySQL DB

  • Participants
  • Parent commits 53867c2

Comments (0)

Files changed (1)

File generators/AweCrud/AweCrudCode.php

         ) {
             return "array(
 					'name' => '{$column->name}',
-					'value' => '(\$data->{$column->name} === 0) ? Yii::t(\\'AweCrud.app\\', \\'No\\') : Yii::t(\\'AweCrud.app\\', \\'Yes\\')',
+					'value' => '(\$data->{$column->name} == 0) ? Yii::t(\\'AweCrud.app\\', \\'No\\') : Yii::t(\\'AweCrud.app\\', \\'Yes\\')',
 					'filter' => array('0' => Yii::t('AweCrud.app', 'No'), '1' => Yii::t('AweCrud.app', 'Yes')),
 					)";
         } else // Common column.