Bug 22575: Item type administration uses invalid error class for dialog
authorOwen Leonard <oleonard@myacpl.org>
Tue, 26 Mar 2019 14:11:28 +0000 (14:11 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Apr 2019 10:38:54 +0000 (11:38 +0100)
commit7f81521067d5fcca8ba399a280515ce8942c7284
tree508dc9286c88c586a5e1e803fa1da1a6f01bfcfd
parent7619c90e0670c2f5dd10d3c0c03a8d3b38ff4f85
Bug 22575: Item type administration uses invalid error class for dialog

This patch modifies the item types administration script so that it
passes a valid message type to the template, where the type is used as a
CSS class. "Error" is a nonexistent dialog class. It should be "alert."

To test, apply the patch and go to Administration -> Item types.

 - Try to delete an item type which is in use. The style of the error
   dialog should be correct.
 - Try to add an item type using a code which already exists. The error
   should look correct.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Bin Wen <bin.wen@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 40503c8fa86e6c4480ec8ca59e28f0c6f394502d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
admin/itemtypes.pl