Merge pull request #519 from axometeam/patch-5

[*] BO : Correct Request Sql Manager validate options
This commit is contained in:
Gregory Roussac
2013-07-12 02:08:45 -07:00
+1 -3
View File
@@ -37,7 +37,7 @@ class RequestSqlCore extends ObjectModel
'primary' => 'id_request_sql', 'primary' => 'id_request_sql',
'fields' => array( 'fields' => array(
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true, 'size' => 200), 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true, 'size' => 200),
'sql' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true, 'size' => 1000), 'sql' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true),
), ),
); );
@@ -232,8 +232,6 @@ class RequestSqlCore extends ObjectModel
{ {
if ($attribut = $this->cutAttribute(trim($attr), $from)) if ($attribut = $this->cutAttribute(trim($attr), $from))
$tab[] = $attribut; $tab[] = $attribut;
else
return false;
} }
return $tab; return $tab;
} }