Lines 49-55
if ( $selector && $sound ) {
Link Here
|
49 |
Koha::AudioAlert->new( { selector => $selector, sound => $sound } )->store(); |
49 |
Koha::AudioAlert->new( { selector => $selector, sound => $sound } )->store(); |
50 |
} |
50 |
} |
51 |
|
51 |
|
52 |
map { Koha::AudioAlerts->find($_)->delete() } @delete; |
52 |
if (@delete) { |
|
|
53 |
map { Koha::AudioAlerts->find($_)->delete() } @delete; |
54 |
Koha::AudioAlerts->fix_precedences(); |
55 |
} |
53 |
|
56 |
|
54 |
if ( $id && $action && $where && $action eq 'move' ) { |
57 |
if ( $id && $action && $where && $action eq 'move' ) { |
55 |
Koha::AudioAlerts->find($id)->move($where); |
58 |
Koha::AudioAlerts->find($id)->move($where); |
56 |
- |
|
|