|
@@ 178-181 (lines=4) @@
|
| 175 |
|
$object->justif_kilometers = GETPOST('justif_kilometers', 'alpha'); |
| 176 |
|
|
| 177 |
|
|
| 178 |
|
if (empty($object->idBBC_vols)) { |
| 179 |
|
$error++; |
| 180 |
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("idBBC_vols")), null, |
| 181 |
|
'errors'); |
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
if (!$error) { |
|
@@ 231-235 (lines=5) @@
|
| 228 |
|
|
| 229 |
|
|
| 230 |
|
//validation |
| 231 |
|
if (empty($object->idBBC_vols)) { |
| 232 |
|
$error++; |
| 233 |
|
setEventMessages($langs->transnoentitiesnoconv("ErrorFieldRequired", |
| 234 |
|
$langs->transnoentitiesnoconv("idBBC_vols")), |
| 235 |
|
null, 'errors'); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
if (!dol_validElement($object->lieuD)) { |