Bugzilla – Attachment 145740 Details for
Bug 32694
Keep current option for budgets in receiving broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32694: Fix value of 'Keep current' option in receiving
Bug-32694-Fix-value-of-Keep-current-option-in-rece.patch (text/plain), 2.11 KB, created by
Katrin Fischer
on 2023-01-27 13:20:05 UTC
(
hide
)
Description:
Bug 32694: Fix value of 'Keep current' option in receiving
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-01-27 13:20:05 UTC
Size:
2.11 KB
patch
obsolete
>From d9e9a0d0c9616b2cbc9d7bc1ad95c4af303a6e24 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 20 Jan 2023 20:18:27 +0000 >Subject: [PATCH] Bug 32694: Fix value of 'Keep current' option in receiving > >This patch restores missing template toolkit markers around the variable > >To test: >1 - Order an item in a basket >2 - Close the basket >3 - Attempt to receive the item, leaving budget as 'Keep current' >4 - 500 Error: >C4::Acquisition::ModReceiveOrder(): DBI Exception: DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (koha_cclsny.aqorders, CONSTRAINT aqorders_budget_id_fk FOREIGN KEY (budget_id) REFERENCES aqbudgets (budget_id) ON DELETE CASCADE ON UPDATE CASCADE) at /usr/share/koha/intranet/cgi-bin/acqui/finishreceive.pl line 120 >5 - Apply patch >6 - Receive order successfully! > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index f28188c1fa..827adcbfc9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -299,7 +299,7 @@ > [% END %] > <select class="select2" id="bookfund" name="bookfund"> > <optgroup label="Current"> >- <option value="order.fund.budget.id" selected="selected" data-sort1-authcat="[% order.fund.sort1_authcat | html %]" data-sort2-authcat="[% order.fund.sort2_authcat | html %]"> >+ <option value="[% order.fund.budget.id %]" selected="selected" data-sort1-authcat="[% order.fund.sort1_authcat | html %]" data-sort2-authcat="[% order.fund.sort2_authcat | html %]"> > Keep current ([% order.fund.budget_name | html %])</option> > </optgroup> > [% FOREACH budget_period_id IN budget_loops.keys %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32694
:
145556
|
145564
| 145740 |
145741