dblayeroo: remove not needed exception
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3794 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -2554,12 +2554,7 @@ class dblayeroo
|
||||
$objTmp->displayAdd ($objTmp->primary);
|
||||
$parentField = explode (",", $params[1]);
|
||||
foreach (explode (",", $fields) as $key=>$field)
|
||||
{
|
||||
if (! key_exists ($field, $values))
|
||||
$this->DBException (sprintf (dgettext ("domframework",
|
||||
"Can't check the foreign value for '%s': not provided"), $field));
|
||||
$objTmp->whereAdd ($parentField[$key], "=", $values[$field]);
|
||||
}
|
||||
if (count ($objTmp->execute ()) === 0)
|
||||
$errors[$field] = sprintf (dgettext ("domframework",
|
||||
"The value of the foreign key '%s' doesn't exists in foreign table"),
|
||||
|
||||
Reference in New Issue
Block a user