Skip to content

Commit

Permalink
Merge pull request #8328 from atm-alexis/FIX_commonObject_isInt_linked
Browse files Browse the repository at this point in the history
Fix commonobject isInt for module builder capabilities
  • Loading branch information
eldy committed Mar 10, 2018
2 parents b2677c3 + b370a30 commit 72eff36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -5527,7 +5527,7 @@ function showOutputField($val, $key, $value, $moreparam='', $keysuffix='', $keyp
$label = $val['label'];
$type = $val['type'];
$size = $val['css'];

// Convert var to be able to share same code than showOutputField of extrafields
if (preg_match('/varchar\((\d+)\)/', $type, $reg))
{
Expand Down Expand Up @@ -6203,7 +6203,7 @@ public function isInt($info)
{
if(is_array($info))
{
if(isset($info['type']) && ($info['type']=='int' || $info['type']=='integer' )) return true;
if(isset($info['type']) && ($info['type']=='int' || preg_match('/^integer/i',$info['type']) ) ) return true;
else return false;
}
else return false;
Expand Down

0 comments on commit 72eff36

Please sign in to comment.