Commits

Jason Green  committed c5861f9

Fixing validation issue related to yii 1.1.13 and booleans

  • Participants
  • Parent commits cfc3dda
  • Branches candidate
  • Tags 1.0.2

Comments (0)

Files changed (4)

File app/protected/core/tests/unit/models/TestTypesModel.php

                 'rules' => array(
                     array('boolean', 'required'),
                     array('boolean', 'boolean'),
-                    array('boolean', 'type',      'type' => 'boolean'),
                     array('boolean', 'numerical', 'min'  => 0, 'max' => 1),
 
                     array('integer', 'required'),

File app/protected/core/tests/unit/models/TestViewMetadataValidatorModel.php

                 'rules' => array(
                     array('boolean', 'required'),
                     array('boolean', 'boolean'),
-                    array('boolean', 'type',      'type' => 'boolean'),
                     array('boolean', 'numerical', 'min'  => 0, 'max' => 1),
 
                     array('integer', 'required'),

File app/protected/modules/emailMessages/models/EmailAccount.php

                                   array('outboundSecurity',          'type',      'type' => 'string'),
                                   array('outboundType',              'type',      'type' => 'string'),
                                   array('outboundPort',              'type',      'type' => 'integer'),
-                                  array('useCustomOutboundSettings', 'type',      'type' => 'boolean'),
+                                  array('useCustomOutboundSettings', 'boolean'),
                                   array('fromName',                  'length',    'max' => 64),
                                   array('replyToName',               'length',    'max' => 64),
                                   array('outboundType',              'length',    'max' => 4),

File app/protected/modules/zurmo/forms/ZurmoConfigurationForm.php

                 array('dashboardListPageSize',                  'required'),
                 array('dashboardListPageSize',                  'type',      'type' => 'integer'),
                 array('dashboardListPageSize',                  'numerical', 'min' => 1),
-                array('gamificationModalNotificationsEnabled',  'type', 'type' => 'boolean'),
+                array('gamificationModalNotificationsEnabled',  'boolean'),
             );
         }