Bug 33063: Make sure correct subgroup is pre-selected when duplicating reports
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 27 Feb 2023 23:45:12 +0000 (23:45 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 14 Apr 2023 16:29:01 +0000 (16:29 +0000)
commitb54b0fddcddf63417be6f2480e45ac8ec516bba9
treefa8fa7aa549306873c8f382e33fde6e9f24a9bea
parent7aea3f50be5461c4b00b3dfaf3d1b3a146c62ef4
Bug 33063: Make sure correct subgroup is pre-selected when duplicating reports

When the 'Duplicate' option for reports was used, the all options
would be copied correctly to the new report, but the report sub group.

In this case the templates were created correctly, but the JavaScript
to create the correct pull downs for each group, overwrote the
the selection.

To test:
* Create a some reports with different groups and subgroups and without
* 'Duplicate' your reports and verify that the sub group will always stay empty
* Apply patch
* Verify the correct sub group is now always selected
* Edit/Add some reports to make sure the group/subgroup controls still
  work as expected

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a651ff50a6819396cc24c5f6bc47110cdd001873)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 36df529064afedcf366b7dc0f0ca79382cb1420a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt