Permalink
Browse files

Fix : Add _ char after prefix for onOff columns

  • Loading branch information...
1 parent 33ed241 commit 3806092d53136690a0f985d66108f1d7c17ca97d Antoine committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Centurion/Form/Model/Abstract.php
@@ -1001,7 +1001,7 @@ protected function _columnToElements()
if ($columnDetails['IDENTITY']) {
$config = array('hidden', array());
- } elseif (substr($columnName, 0, 2) == 'is' || substr($columnName, 0, 6) == 'can_be' || substr($columnName, 0, 3) == 'has') {
+ } elseif (substr($columnName, 0, 3) == 'is_' || substr($columnName, 0, 7) == 'can_be_' || substr($columnName, 0, 4) == 'has_') {
$config = array('onOff', array());
} elseif (substr($columnName, 0, -3) == 'pwd' || $columnName == 'password') {
$config = array('password', array());

0 comments on commit 3806092

Please sign in to comment.