|
@@ 184-187 (lines=4) @@
|
| 181 |
|
$object->justif_kilometers = GETPOST('justif_kilometers', 'alpha'); |
| 182 |
|
|
| 183 |
|
|
| 184 |
|
if (empty($object->idBBC_vols)) { |
| 185 |
|
$error++; |
| 186 |
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("idBBC_vols")), null, |
| 187 |
|
'errors'); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
if (!$error) { |
|
@@ 237-241 (lines=5) @@
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
//validation |
| 237 |
|
if (empty($object->idBBC_vols)) { |
| 238 |
|
$error++; |
| 239 |
|
setEventMessages($langs->transnoentitiesnoconv("ErrorFieldRequired", |
| 240 |
|
$langs->transnoentitiesnoconv("idBBC_vols")), |
| 241 |
|
null, 'errors'); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
if (!dol_validElement($object->lieuD)) { |