[*] BO : Correct Request Sql Manager validate options
Correct Request Sql Manager validate options : - No size limit for the request - cutJoin() doesn't work for multiple Join (exemple : LEFT JOIN `XXX ON XXX AND XXX) => Then you can't save the request, even if it work
This commit is contained in:
@@ -37,7 +37,7 @@ class RequestSqlCore extends ObjectModel
|
||||
'primary' => 'id_request_sql',
|
||||
'fields' => array(
|
||||
'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))
|
||||
$tab[] = $attribut;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
return $tab;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user