|
@@ -56,7 +56,7 @@ |
|
|
block discarded – undo |
|
56
|
56
|
$uploaded_files = $form_state->getValue(['upload'], []); |
|
57
|
57
|
$trigger = $form_state->getTriggeringElement(); |
|
58
|
58
|
|
|
59
|
|
- if (in_array('::save', $trigger['#submit'] )) { |
|
|
59
|
+ if (in_array('::save', $trigger['#submit'])) { |
|
60
|
60
|
$violations = $this->runWidgetValidators($uploaded_files, ['not_empty' => ['min' => 1]]); |
|
61
|
61
|
if (!empty($violations)) { |
|
62
|
62
|
/** @var \Symfony\Component\Validator\ConstraintViolationListInterface $violation */ |
Please login to merge, or discard this patch.