Skip to content

Commit

Permalink
IBX-7957: Suppressed validation on Save and Close
Browse files Browse the repository at this point in the history
  • Loading branch information
bwajda committed Mar 15, 2024
1 parent 519420a commit 8c3a8c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public function suppressValidationOnSaveDraft(PostSubmitEvent $event)
$event->stopPropagation();
}
}

if ($form->has('saveDraftAndClose')) {
if ($form->get('saveDraftAndClose')->isClicked()) {
$event->stopPropagation();
}
}
}

public function suppressValidationOnAutosaveDraft(PostSubmitEvent $event)
Expand Down

0 comments on commit 8c3a8c3

Please sign in to comment.