]> git.koha-community.org Git - koha.git/commit
Bug 29828: Prevent additional content to be created without default
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Jan 2022 09:15:35 +0000 (10:15 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 May 2022 11:51:36 +0000 (08:51 -0300)
commit05934b89b1b43ceb88928b48a4e1fd69708ac61b
tree32ca9caa78d7adff1a7e1d94ba050545853660d1
parent554c9cb7d9c562960b24474687e7472a9257ab18
Bug 29828: Prevent additional content to be created without default

When creating or editing an additional content, the form is submitted if
only the title of the 'default' tab is filled in.
We should submit the form only if both title and content exist.

Test plan:
Create a new content using text editor (codemirror)
Confirm that the form is submitted only if title and content from the
default tab are not empty
Try again with wysiwyg (tinymce)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt