View | Details | Raw Unified | Return to bug 15084
Collapse All | Expand All

(-)a/admin/currency.pl (-1 / +1 lines)
Lines 98-104 if ( $op eq 'add_form' ) { Link Here
98
        currency     => $currency,
98
        currency     => $currency,
99
        nb_of_orders => $nb_of_orders,
99
        nb_of_orders => $nb_of_orders,
100
    );
100
    );
101
} elsif ( $op eq 'delete' ) {
101
} elsif ( $op eq 'delete_confirmed' ) {
102
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
102
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
103
    my $deleted = eval { $currency->delete; };
103
    my $deleted = eval { $currency->delete; };
104
104
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-2 / +1 lines)
Lines 145-151 Link Here
145
        </table>
145
        </table>
146
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
146
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
147
            <input type="hidden" name="op" value="delete_confirmed" />
147
            <input type="hidden" name="op" value="delete_confirmed" />
148
            <input type="hidden" name="currency_code" value="[% currency.currency_code %]" />
148
            <input type="hidden" name="currency_code" value="[% currency.currency %]" />
149
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this currency</button>
149
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this currency</button>
150
        </form>
150
        </form>
151
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
151
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
152
- 

Return to bug 15084