Koha/admin
Jonathan Druart 331ca7df3e Bug 11675: check allocated total correctly when editing a fund that has a parent fund
The sth was created before the query.
The query was modified after the sth creation and an error was raised.

Test plan:
0/ Don't apply the patch
1/ Create a budget A (amount=1000)
2/ Create a fund A1 (amount=1000)
3/ Create a child fund A11 (amount=1000)
4/ Edit A11 and change the amount to 2000
You are able to do it, an error appears in the Koha log:
  "check_parent_total.pl: DBD::mysql::st execute failed: called with 2 bind
  variables when 1 are needed"
5/ Apply the patch, edit A11 and save. You get an error
6/ Edit A11 and change the amount to <=1000
7/ Verify that there is no regression on adding/removing/editing budgets
and funds.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Works as described, no regressions found.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-03-11 17:09:31 +00:00
..
searchengine/solr
admin-home.pl
aqbudget_user_search.pl
aqbudgetperiods.pl
aqbudgets.pl Bug 11166: make library filter in funds administration page more precise 2013-12-20 22:49:47 +00:00
aqcontract.pl
aqplan.pl
auth_subfields_structure.pl Bug 11286: fix bug preventing adding a new subfield to an authority framework 2013-11-27 18:07:17 +00:00
auth_tag_structure.pl Bug 11767 - Use validation plugin when creating new authority framework tag 2014-02-19 15:51:12 +00:00
authorised_values.pl
authtypes.pl
biblio_framework.pl
branch_transfer_limits.pl
branches.pl
categorie.pl Bug 11513: fix log warning noise in patron category editor 2014-01-31 16:15:09 +00:00
check_budget_parent.pl
check_parent_total.pl Bug 11675: check allocated total correctly when editing a fund that has a parent fund 2014-03-11 17:09:31 +00:00
checkmarc.pl
cities.pl
classsources.pl
clone-rules.pl
currency.pl
didyoumean.pl
env_tz_test.pl
fieldmapping.pl
import_export_framework.pl Bug 11666: remove SQL as an option for MARC framework exports and imports 2014-02-05 19:48:27 +00:00
item_circulation_alerts.pl
itemtypes.pl Bug 11163: display correct itemtype usage count when deleting an itemtype 2013-11-15 15:34:33 +00:00
koha2marclinks.pl
marc_subfields_structure.pl Bug 8018: (followup) make the default more explicit 2013-12-27 00:34:50 +00:00
marctagstructure.pl Bug 11771 - Use validation plugin when creating new MARC framework tag 2014-02-19 00:03:24 +00:00
matching-rules.pl
oai_set_mappings.pl Bug 9295: Introduce operator equal/ notequal to OAI set mapping instead of hardcoded 'equal' value. 2013-10-10 23:03:30 +00:00
oai_sets.pl
patron-attr-types.pl
preferences.pl Bug 11135: (follow-up) improve testing of OVERRIDE_SYSPREF_NAMES 2013-10-31 14:21:25 +00:00
printers.pl
smart-rules.pl
stopwords.pl
systempreferences.pl
transport-cost-matrix.pl
z3950servers.pl Bug 10096 - Add a Z39.50 interface for authority searching 2013-10-04 14:26:29 +00:00