]> git.koha-community.org Git - koha.git/commit
Bug 27526: Fix mandatory and important checks
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Jul 2021 13:48:36 +0000 (15:48 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 09:44:22 +0000 (11:44 +0200)
commit6ed29bccef590a1bc5e4cea175b41b8024483320
treecd484c074d5d97e60ce7e9d82e92f2c2621926bc
parent9341e74aa265037c9f47a5a2d69538a3c3a7cbd1
Bug 27526: Fix mandatory and important checks

The input names have been changed from "field_value" to $kohafield.
Modifying this could have an impact in other area, where
CheckMandatorySubfields and CheckImportantSubfields are called.
Using .input_marceditor let us fix the additem.tt form and prevent to
break the other ones.
Note that the other ones are actually broken (!)

Also note that there is a typo in the error message
        alertString2 += "\n- " + "%s " + MSG_MANDATORY_FIELDS_EMPTY.format(total_errors);
There is an extra %s

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js