Bad parameter when calling setEventMessage function
This commit is contained in:
parent
013eac1147
commit
ed2b359dae
@ -92,7 +92,7 @@ if ($action == 'add')
|
|||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
$mesg=$extrafields->error;
|
$mesg=$extrafields->error;
|
||||||
setEventMessage($mesg,'error');
|
setEventMessage($mesg,'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -100,7 +100,7 @@ if ($action == 'add')
|
|||||||
$error++;
|
$error++;
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters",$langs->transnoentities("AttributeCode"));
|
$mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters",$langs->transnoentities("AttributeCode"));
|
||||||
setEventMessage($mesg,'error');
|
setEventMessage($mesg,'errors');
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user