Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #100 from AntoineROESSLINGER/feature/fix_onoff_pre…

…fix_columns

Fix : Add _ char after prefix for onOff columns
  • Loading branch information...
commit 2cd377e713acbbec94e2bc9ab1d1171998062697 2 parents 33ed241 + 3806092
@FreakDev FreakDev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Centurion/Form/Model/Abstract.php
View
2  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());
Please sign in to comment.
Something went wrong with that request. Please try again.