Skip to content
Permalink
Browse files

Fix overeager validation

  • Loading branch information...
flack committed Mar 10, 2019
1 parent 3cf8f54 commit 54a12429f579deb2f7296547b086222865b376f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/midcom/datamanager/validation/imageValidator.php
@@ -15,7 +15,7 @@ public function validate($value, Constraint $constraint)
if ( !empty($value['delete'])
|| ( empty($value['file'])
&& ( empty($constraint->config['do_not_save_archival'] && empty($value['archival']))
|| empty($value['main'])))) {
xor empty($value['main'])))) {
$this->context->buildViolation('This value should not be blank.')
->addViolation();
}

0 comments on commit 54a1242

Please sign in to comment.
You can’t perform that action at this time.