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