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

(-)a/catalogue/updateitem.pl (-2 / +2 lines)
Lines 82-90 elsif ( $op eq "cud-set_public_note" ) { # i.e., itemnotes parameter passed from Link Here
82
    $item->bookable($bookable);
82
    $item->bookable($bookable);
83
} elsif ( $op eq "cud-set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
83
} elsif ( $op eq "cud-set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
84
    $item->damaged($damaged);
84
    $item->damaged($damaged);
85
} elsif ( $op eq "set_sort1" && $sort1 ne $item_data_hashref->{'sort1'} ) {
85
} elsif ( $op eq "cud-set_sort1" && $sort1 ne $item_data_hashref->{'sort1'} ) {
86
    $item->sort1($sort1);
86
    $item->sort1($sort1);
87
} elsif ( $op eq "set_sort2" && $sort2 ne $item_data_hashref->{'sort2'} ) {
87
} elsif ( $op eq "cud-set_sort2" && $sort2 ne $item_data_hashref->{'sort2'} ) {
88
    $item->sort2($sort2);
88
    $item->sort2($sort2);
89
} else {
89
} else {
90
    #nothings changed, so do nothing.
90
    #nothings changed, so do nothing.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-3 / +4 lines)
Lines 387-394 Link Here
387
                                            <span class="label">Sort 1:</span>
387
                                            <span class="label">Sort 1:</span>
388
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
388
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
389
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
389
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
390
                                                    [% INCLUDE 'csrf-token.inc' %]
390
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
391
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
391
                                                    <input type="hidden" name="op" value="set_sort1" />
392
                                                    <input type="hidden" name="op" value="cud-set_sort1" />
392
                                                    <textarea name="sort1" rows="2" cols="30">[% ITEM_DAT.sort1 | html %]</textarea><input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
393
                                                    <textarea name="sort1" rows="2" cols="30">[% ITEM_DAT.sort1 | html %]</textarea><input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
393
                                                </form>
394
                                                </form>
394
                                            [% ELSE %]
395
                                            [% ELSE %]
Lines 399-406 Link Here
399
                                            <span class="label">Sort 2:</span>
400
                                            <span class="label">Sort 2:</span>
400
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
401
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
401
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
402
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
403
                                                    [% INCLUDE 'csrf-token.inc' %]
402
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
404
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
403
                                                    <input type="hidden" name="op" value="set_sort2" />
405
                                                    <input type="hidden" name="op" value="cud-set_sort2" />
404
                                                    <textarea name="sort2" rows="2" cols="30">[% ITEM_DAT.sort2 | html %]</textarea><input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
406
                                                    <textarea name="sort2" rows="2" cols="30">[% ITEM_DAT.sort2 | html %]</textarea><input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
405
                                                </form>
407
                                                </form>
406
                                            [% ELSE %]
408
                                            [% ELSE %]
407
- 

Return to bug 19316