projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ba2c5
)
Bug 11431: (QA followup) Fix alter precedences on delete
author
Kyle M Hall
<kyle@bywatersolutions.com>
Fri, 18 Sep 2015 10:36:10 +0000
(06:36 -0400)
committer
Tomas Cohen Arazi
<tomascohen@theke.io>
Wed, 4 Nov 2015 15:33:10 +0000
(12:33 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
admin/audio_alerts.pl
patch
|
blob
|
history
diff --git
a/admin/audio_alerts.pl
b/admin/audio_alerts.pl
index
f62bacd
..
dc0903f
100755
(executable)
--- a/
admin/audio_alerts.pl
+++ b/
admin/audio_alerts.pl
@@
-49,7
+49,10
@@
if ( $selector && $sound ) {
Koha::AudioAlert->new( { selector => $selector, sound => $sound } )->store();
}
-map { Koha::AudioAlerts->find($_)->delete() } @delete;
+if (@delete) {
+ map { Koha::AudioAlerts->find($_)->delete() } @delete;
+ Koha::AudioAlerts->fix_precedences();
+}
if ( $id && $action && $where && $action eq 'move' ) {
Koha::AudioAlerts->find($id)->move($where);