Skip to content
This repository
Browse code

Fix : Add _ char after prefix for onOff columns

  • Loading branch information...
commit 3806092d53136690a0f985d66108f1d7c17ca97d 1 parent 33ed241
authored December 04, 2012
2  library/Centurion/Form/Model/Abstract.php
@@ -1001,7 +1001,7 @@ protected function _columnToElements()
1001 1001
 
1002 1002
             if ($columnDetails['IDENTITY']) {
1003 1003
                 $config = array('hidden', array());
1004  
-            } elseif (substr($columnName, 0, 2) == 'is' || substr($columnName, 0, 6) == 'can_be' || substr($columnName, 0, 3) == 'has') {
  1004
+            } elseif (substr($columnName, 0, 3) == 'is_' || substr($columnName, 0, 7) == 'can_be_' || substr($columnName, 0, 4) == 'has_') {
1005 1005
                 $config = array('onOff', array());
1006 1006
             } elseif (substr($columnName, 0, -3) == 'pwd' || $columnName == 'password') {
1007 1007
                 $config = array('password', array());

0 notes on commit 3806092

Please sign in to comment.
Something went wrong with that request. Please try again.