Skip to content

Commit

Permalink
defect_found_reason always mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Nov 21, 2023
1 parent 026025d commit 07ac55b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Model/Table/InfoSheetsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ public function validationDefault(Validator $validator): Validator
$validator->allowEmptyString('no_repair_reason_text');
$validator->maxLength('no_repair_reason_text', 200, 'Maximal 200 Zeichen bitte.');

$validator->notEmptyString('defect_found_reason', 'Bitte gib Details zur Reparatur an.', function($context) {
return $this->isDefectFound($context);
});
$validator->notEmptyString('defect_found_reason', 'Bitte gib Details zur Reparatur an.');

$validator->notEmptyString('repair_postponed_reason', 'Bitte gib an, warum die Reparatur vertagt wurde.', function($context) {
return $this->isRepairPostponed($context);
Expand Down

0 comments on commit 07ac55b

Please sign in to comment.