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 386-393 Link Here
386
                                            <span class="label">Sort 1:</span>
386
                                            <span class="label">Sort 1:</span>
387
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
387
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
388
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
388
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
389
                                                    [% INCLUDE 'csrf-token.inc' %]
389
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
390
                                                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
390
                                                    <input type="hidden" name="op" value="set_sort1" />
391
                                                    <input type="hidden" name="op" value="cud-set_sort1" />
391
                                                    <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" />
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" />
392
                                                </form>
393
                                                </form>
393
                                            [% ELSE %]
394
                                            [% ELSE %]
Lines 398-405 Link Here
398
                                            <span class="label">Sort 2:</span>
399
                                            <span class="label">Sort 2:</span>
399
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
400
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
400
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
401
                                                <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
402
                                                    [% INCLUDE 'csrf-token.inc' %]
401
                                                    <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="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
402
                                                    <input type="hidden" name="op" value="set_sort2" />
404
                                                    <input type="hidden" name="op" value="cud-set_sort2" />
403
                                                    <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
                                                    <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" />
404
                                                </form>
406
                                                </form>
405
                                            [% ELSE %]
407
                                            [% ELSE %]
406
- 

Return to bug 19316