Update card-rec.php

This commit is contained in:
Frédéric FRANCE 2021-03-15 11:11:41 +01:00 committed by GitHub
parent 523b189017
commit 9f5d0dbb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,13 +104,13 @@ $arrayfields = array(
// Create predefined intervention
if ($action == 'add') {
if (!GETPOSTISSET('titre')) {
if (!GETPOST('titre')) {
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors');
$action = "create";
$error++;
}
if (!GETPOSTISSET('socid')) {
if (!GETPOST('socid')) {
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Customer")), null, 'errors');
$action = "create";
$error++;