Bug 28689: Extra %s in alert message when saving an items
authorOwen Leonard <oleonard@myacpl.org>
Thu, 15 Jul 2021 13:00:14 +0000 (13:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 Aug 2021 19:24:03 +0000 (09:24 -1000)
commit300b7d460e1219e0126cb977c1938a9226e52681
tree1fc093e5ad30bc85f4757a41d054447d6c45d1a5
parent8e417216ca4f62b61ab0a748169f80718d54466c
Bug 28689: Extra %s in alert message when saving an items

This patch removes an unnecessary %s in the text built to show when
there are errors in the cataloging add item form.

To reproduce, open the add item form in cataloging and click "Add item"
without filling in all mandatory fields. You should see an alert message
that contains, "- %s 1 mandatory fields empty (highlighted)"

To test, apply the patch and return to the add item form. Now when you
save an incomplete form the message should omit the %s:

- 1 mandatory fields empty (highlighted)

https://bugs.koha-community.org/show_bug.cgi?id=28690

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2b800a467f8277c014c8cbe35893119a4f0dbb24)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js