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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 3 Jun 2022 12:30:21 +0000 (14:30 +0200)
commitf8d11504b7513fe797e9ed3050887026d0746ef8
tree596c9bca898d184a983711584c5416c42e8430ab
parentc40418057269883bf8a8541579e14680ae88dba5
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>
(cherry picked from commit be11af15e61653f2f853a22870468bc8987fbdd4)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt