Koha/admin
Phil Ringnalda db42742a3a
Bug 34159: Budget planning shouldn't add every authorized value starting with A
In aqplan.pl there are two different sets of params for things you can plan
by: for the toolbar "Planning" menubutton the script looks up what AVs are
used for "Statistic 1|2 done on" for the budget's fund(s), and passes them to
the template which knows to hardcode the MONTHS, ITEMTYPES, and BRANCHES
choices, but for "Select planning type" in the Filter sidebar box, the
script inserts the harcoded ones itself, adds in the ones used by a fund,
and for no apparent reason adds in every authorized value category that starts
with the letter A and has at least one value. Those things do not actually
work, because for things other than the hardcoded ones the script checks
whether they are in a fund's "Statistic 1|2" and if not refuses to let you
plan by them.

Test plan:
 1. Administration - Budgets
 2. If you don't have a budget, create one and add a fund to it,
    but with the default data click the name Main budget
 3. In the row for Main fund, click Actions->Edit
 4. For Statistic 1 done on choose an authorized value which does not start
    with A, like BOR_NOTES, and Save
 5. In the top toolbar, Planning->Plan by months
 6. In the sidebar Filter box, note that there is an option to plan by
    AR_CANCELLATION even though you didn't select that for Statistic 1
 7. Select the by BOR_NOTE choice and Submit
 8. Note that you now only see Main fund, because that's the only one
    which uses that AV
 9. Select the by months choice and Submit, see that it changes back, then
    select the by AR_CANCELLATION choice and see that nothing is displayed,
    select the by months choice again and Submit, see that the display is
    now completely broken
 9. Apply patch, restart_all, reload the page
10. Note that the AR_CANCELLATION choice is gone, and all the choices
    you do have work correctly

Sponsored-by: Chetco Community Public Library
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-09-16 13:47:08 +02:00
..
searchengine/elasticsearch Bug 37319: Move mappings for 752ad (MARC21) and 210a/214a (UNIMARC) to pl index 2024-07-12 10:21:24 +02:00
additional-fields.pl Bug 35044: Admin: New additional fields 'repeatable' field 2024-08-23 18:21:20 +02:00
admin-home.pl
adveditorshortcuts.pl
aqbudgetperiods.pl
aqbudgets.pl
aqcontract.pl Bug 37823: Remove unreachable code in vendor contract page 2024-09-13 13:54:16 +02:00
aqplan.pl Bug 34159: Budget planning shouldn't add every authorized value starting with A 2024-09-16 13:47:08 +02:00
audio_alerts.pl
auth_subfields_structure.pl
auth_tag_structure.pl Bug 37163: Fix the redirect after deleting a tag from an authority framework to load the right page 2024-06-27 11:50:02 +02:00
authorised_values.pl
authtypes.pl
background_jobs.pl
biblio_framework.pl
branch_transfer_limits.pl
branches.pl
cash_registers.pl
categories.pl Bug 37366: Patron category "Password change in OPAC" setting only follows system preference 2024-07-26 13:56:33 +01:00
check_budget_parent.pl
check_parent_total.pl
checkmarc.pl
cities.pl
classsources.pl
clone-rules.pl
columns_settings.pl
columns_settings.yml Bug 35191: Make entries per page configurable for items table on staff detail page 2024-09-16 10:41:03 +02:00
credit_types.pl
curbside_pickup.pl
currency.pl
debit_types.pl
desks.pl
didyoumean.pl
edi_accounts.pl Bug 36767: Add a hint to show the new default of 22 2024-06-27 17:24:42 +02:00
edi_ean_accounts.pl
identity_providers.pl Bug 36276: Fix editing of identity provider and domains 2024-07-11 13:40:53 +02:00
ill_batch_statuses.pl
import_export_authtype.pl
import_export_framework.pl
item_circulation_alerts.pl
items_search_field.pl
items_search_fields.pl
itemtypes.pl
koha2marclinks.pl
library_groups.pl Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
localization.pl
marc-overlay-rules.pl Bug 36880: Record overlay rules are not validated 2024-06-27 11:50:06 +02:00
marc_subfields_structure.pl
marctagstructure.pl Bug 34346: Show error message instead of 500 for duplicate tags 2024-08-19 17:29:53 +02:00
matching-rules.pl
oai_set_mappings.pl
oai_sets.pl
overdrive.pl
patron-attr-types.pl
preferences.pl
record_sources.pl
restrictions.pl
search_filters.pl
share_content.pl
smart-rules.pl Bug 34440: Add lead and trail time to circulation rules 2024-08-30 16:41:26 +02:00
sms_providers.pl
smtp_servers.pl
sru_modmapping.pl
systempreferences.pl Bug 37765: Fix forms that POST without an op in systemprefernces 2024-09-13 12:02:47 +02:00
transfer_limits.pl
transport-cost-matrix.pl
usage_statistics.pl
z3950servers.pl