[Bug 43865] New: Typo in item_inactive class on selected inactive item fund in addorderiso2709.tt
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 Bug ID: 43865 Summary: Typo in item_inactive class on selected inactive item fund in addorderiso2709.tt Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Spotted while pushing Bug 43787. In koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt, the item-level fund dropdown renders an option that is both inactive and the item's currently selected fund with the class "buget_item_inactive" (typo: missing 'd'). All the other inactive item options use "budget_item_inactive". koha-tmpl/intranet-tmpl/prog/js/funds_sorts.js builds the "active funds only" dropdown by removing every ".budget_item_inactive" child from a clone of each item select. Because of the typo, the selected inactive fund is not removed, so it stays selected in the active-only dropdown. The typo was introduced by Bug 22712 and no CSS or other JS references either spelling. Do NOT simply correct the spelling: the selected inactive option would then be stripped from the active-only dropdown, the item would lose its existing fund in the visible select, and an empty budget_id would be submitted for it. Suggested approach: decide whether the selected inactive option should keep a class at all. Either drop the class from that option (no behaviour change), or give it an explicit, correctly named class (e.g. budget_item_selected_inactive) that funds_sorts.js deliberately leaves alone, and add a comment explaining why. Test plan: 1. Create an inactive budget with a fund and stage a MARC file whose items map to that fund (MarcItemFieldsToOrder). 2. Go to Add to basket > From a staged file and open the staged file. 3. Confirm the item's fund dropdown shows the inactive fund selected while 'Show inactive funds' is unchecked. 4. Toggle 'Show inactive funds' and confirm the selection is retained both ways. 5. After the fix, repeat and confirm behaviour is unchanged. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |matt.blenkinsop@openfifth.c |ity.org |o.uk -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 --- Comment #1 from Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> --- Created attachment 208567 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208567&action=edit Bug 43865: Remove misspelled class from selected inactive item fund option This patch removes the class from the selected inactive option This matches the record-level fund select in the same template, where the selected inactive option also has no class. No behaviour change. Test plan: 1. Create an inactive budget with a fund and stage a MARC file whose items map to that fund (MarcItemFieldsToOrder). 2. Go to Add to basket > From a staged file and open the staged file. 3. Confirm the item's fund dropdown shows the inactive fund selected while 'Show inactive funds' is unchecked. 4. Toggle 'Show inactive funds' and confirm the selection is retained both ways. 5. Apply the patch, repeat and confirm behaviour is unchanged. Assisted-by: Claude Fable 5.1 (Anthropic) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #208567|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43865 --- Comment #2 from Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> --- Created attachment 208570 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208570&action=edit Bug 43865: Remove misspelled class from selected inactive item fund option This patch removes the class from the selected inactive option This matches the record-level fund select in the same template, where the selected inactive option also has no class. No behaviour change. Test plan: 1. Create an inactive budget with a fund and stage a MARC file whose items map to that fund (MarcItemFieldsToOrder). 2. Go to Add to basket > From a staged file and open the staged file. 3. Confirm the item's fund dropdown shows the inactive fund selected while 'Show inactive funds' is unchecked. 4. Toggle 'Show inactive funds' and confirm the selection is retained both ways. 5. Apply the patch, repeat and confirm behaviour is unchanged. Assisted-by: Claude Fable 5.1 (Anthropic) -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org