Skip to content

Commit 2cd377e

Browse files
committed
Merge pull request #100 from AntoineROESSLINGER/feature/fix_onoff_prefix_columns
Fix : Add _ char after prefix for onOff columns
2 parents 33ed241 + 3806092 commit 2cd377e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Centurion/Form/Model/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ protected function _columnToElements()
10011001

10021002
if ($columnDetails['IDENTITY']) {
10031003
$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_') {
10051005
$config = array('onOff', array());
10061006
} elseif (substr($columnName, 0, -3) == 'pwd' || $columnName == 'password') {
10071007
$config = array('password', array());

0 commit comments

Comments
 (0)