-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix package forms not validating due to localisable dependency
Unfortunately, the `Localisable` form added the two checkboxes for the two package forms (job and banner) where this is not required. As these elements are not present on the page, the form would not validate because it was missing elements. I have changed the `Localisable` form to by default always add the checkboxes, however, a second argument can be provided to not do this. This could have been fixed by altering the `validationGroup` for the specific package forms, however, that is not a universal fix for the problem at hand. Hence, delegating the "validation" to the `Localisable` form by removing the elements when not necessary is more maintainable.
- Loading branch information
Showing
2 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters