Update card-rec.php
This commit is contained in:
parent
523b189017
commit
9f5d0dbb6b
@ -104,13 +104,13 @@ $arrayfields = array(
|
|||||||
|
|
||||||
// Create predefined intervention
|
// Create predefined intervention
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
if (!GETPOSTISSET('titre')) {
|
if (!GETPOST('titre')) {
|
||||||
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors');
|
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors');
|
||||||
$action = "create";
|
$action = "create";
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GETPOSTISSET('socid')) {
|
if (!GETPOST('socid')) {
|
||||||
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Customer")), null, 'errors');
|
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Customer")), null, 'errors');
|
||||||
$action = "create";
|
$action = "create";
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user