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

(-)a/acqui/newordersuggestion.pl (-1 / +1 lines)
Lines 129-135 if ( $op eq 'connectDuplicate' ) { Link Here
129
    ConnectSuggestionAndBiblio( $suggestionid, $duplicateNumber );
129
    ConnectSuggestionAndBiblio( $suggestionid, $duplicateNumber );
130
}
130
}
131
131
132
if ( $op eq 'link_order' and $link_order ) {
132
if ( $op eq 'cud-link_order' and $link_order ) {
133
    my $order      = Koha::Acquisition::Orders->find($link_order);
133
    my $order      = Koha::Acquisition::Orders->find($link_order);
134
    my $suggestion = Koha::Suggestions->find($suggestionid);
134
    my $suggestion = Koha::Suggestions->find($suggestionid);
135
    $suggestion->update( { biblionumber => $order->biblionumber } ) if $order->biblionumber;
135
    $suggestion->update( { biblionumber => $order->biblionumber } ) if $order->biblionumber;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-1 / +2 lines)
Lines 738-744 Link Here
738
                                                                    <br />
738
                                                                    <br />
739
                                                                [% END %]
739
                                                                [% END %]
740
                                                                [% UNLESS ( books_loo.suggestionid ) %]
740
                                                                [% UNLESS ( books_loo.suggestionid ) %]
741
                                                                    <a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;link_order=[% books_loo.ordernumber | uri %]">[% tp('verb', 'Link suggestion') | html %]</a>
741
                                                                    <a data-action="/cgi-bin/koha/acqui/newordersuggestion.pl" data-booksellerid="[% booksellerid | uri %]" data-basketno="[% basketno | uri %]" data-link_order="[% books_loo.ordernumber | uri %]" data-method="post" class="submit-form-link" href="#">[% tp('verb', 'Link suggestion') | html %]</a>
742
                                                                [% END %]
742
                                                                [% END %]
743
                                                            </td>
743
                                                            </td>
744
                                                        [% END %]
744
                                                        [% END %]
Lines 1026-1031 Link Here
1026
    [% Asset.js("js/form-submit.js") | $raw %]
1026
    [% Asset.js("js/form-submit.js") | $raw %]
1027
    [% INCLUDE 'datatables.inc' %]
1027
    [% INCLUDE 'datatables.inc' %]
1028
    [% Asset.js("js/acq.js") | $raw %]
1028
    [% Asset.js("js/acq.js") | $raw %]
1029
    [% Asset.js("js/form-submit.js") | $raw %]
1029
    [% INCLUDE 'calendar.inc' %]
1030
    [% INCLUDE 'calendar.inc' %]
1030
    <script>
1031
    <script>
1031
        function updateColumnsVisibility(visible) {
1032
        function updateColumnsVisibility(visible) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt (-3 / +10 lines)
Lines 95-102 Link Here
95
                                        <td class="actions">
95
                                        <td class="actions">
96
                                            [% IF link_order %]
96
                                            [% IF link_order %]
97
                                                <a
97
                                                <a
98
                                                    href="/cgi-bin/koha/acqui/newordersuggestion.pl?op=link_order&amp;link_order=[% link_order | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;suggestionid=[% suggestion.suggestionid | uri %]"
98
                                                    data-action="/cgi-bin/koha/acqui/newordersuggestion.pl"
99
                                                    class="btn btn-default btn-xs"
99
                                                    data-op="cud-link_order"
100
                                                    data-link_order="[% link_order | uri %]"
101
                                                    data-booksellerid="[% booksellerid | uri %]"
102
                                                    data-basketno="[% basketno | uri %]"
103
                                                    data-suggestionid="[% suggestion.suggestionid | uri %]"
104
                                                    data-method="post"
105
                                                    class="btn btn-default btn-xs submit-form-link"
106
                                                    href="#"
100
                                                    ><i class="fa fa-plus"></i> [% tp('verb', 'Link suggestion') | html %]</a
107
                                                    ><i class="fa fa-plus"></i> [% tp('verb', 'Link suggestion') | html %]</a
101
                                                >
108
                                                >
102
                                            [% ELSIF ( suggestion.biblionumber ) %]
109
                                            [% ELSIF ( suggestion.biblionumber ) %]
Lines 133-138 Link Here
133
140
134
    [% MACRO jsinclude BLOCK %]
141
    [% MACRO jsinclude BLOCK %]
135
        [% Asset.js("js/acquisitions-menu.js") | $raw %]
142
        [% Asset.js("js/acquisitions-menu.js") | $raw %]
143
        [% Asset.js("js/form-submit.js") | $raw %]
136
        [% INCLUDE 'datatables.inc' %]
144
        [% INCLUDE 'datatables.inc' %]
137
        [% INCLUDE 'calendar.inc' %]
145
        [% INCLUDE 'calendar.inc' %]
138
        <script>
146
        <script>
139
- 

Return to bug 31632