]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 1 Jun 2022 16:20:39 +0000 (16:20 +0000)
commitbe11af15e61653f2f853a22870468bc8987fbdd4
tree227da28cbc505f025fb0d3871f22c6fb18a1ee23
parent78f89459f461a36cbe523b95a2eb157646288ef9
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>
(cherry picked from commit 05934b89b1b43ceb88928b48a4e1fd69708ac61b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt