[Bug 42981] New: ERM package result list hangs when filtering by vendor and search status is saved
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 Bug ID: 42981 Summary: ERM package result list hangs when filtering by vendor and search status is saved Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: ERM Assignee: jonathan.druart@gmail.com Reporter: michaela.sieber@kit.edu QA Contact: testopia@bugs.koha-community.org CC: jonathan.druart@gmail.com, jonathan.field@openfifth.co.uk, martin.renvoize@openfifth.co.uk, matt.blenkinsop@openfifth.co.uk, pedro.amorim@openfifth.co.uk Target Milestone: --- Problem: When the search status is saved on a page, the ERM package results list freezes when filtering by vendor. The issue is reproducible with the following steps: 1.) Admin - table settings: cgi-bin/koha/admin/columns_settings.pl#eholdings|packages Activate checkbox "Save search state on page change" 2.) Go to ERM : cgi-bin/koha/erm/eholdings/local/packages And create two packages: - One package with My Vendor assigned. - One package without a vendor. 3.) Filter the package results list by My Vendor. --> List is filtered to one package 4.) Leave the page, for example by navigating to Agreements. Return to the Packages list and you will see the issue (See also attached Screenshot) Actual result: The package results list becomes unresponsive / hangs after returning to the page. Expected result: The package results list should load and display the filtered results correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 --- Comment #1 from Michaela Sieber <michaela.sieber@kit.edu> --- Created attachment 201430 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201430&action=edit ERM package result list hangs -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clemens.tubach@kit.edu, | |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 --- Comment #2 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 201433 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201433&action=edit Bug 42981: Prevent toLowerCase to fail when comparing int and string If stateSave is turned on and one of the option has a value with _id set to an Integer, toLowerCase is not available and a JS error is raised: Uncaught (in promise) TypeError: this._id.toLowerCase is not a function Test plan: 1.) Admin - table settings: cgi-bin/koha/admin/columns_settings.pl#eholdings|packages Activate checkbox "Save search state on page change" 2.) Go to ERM : cgi-bin/koha/erm/eholdings/local/packages And create two packages: - One package with My Vendor assigned. - One package without a vendor. 3.) Filter the package results list by My Vendor. --> List is filtered to one package 4.) Leave the page, for example by navigating to Agreements. Return to the Packages list and you will see the issue (See also attached Screenshot) => Without the patch The package results list becomes unresponsive / hangs after returning to the page. => With the patch The package results list should load and display the filtered results correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 OpenFifth Sandboxes <sandboxes@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #201433|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=42981 --- Comment #3 from OpenFifth Sandboxes <sandboxes@openfifth.co.uk> --- Created attachment 201474 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201474&action=edit Bug 42981: Prevent toLowerCase to fail when comparing int and string If stateSave is turned on and one of the option has a value with _id set to an Integer, toLowerCase is not available and a JS error is raised: Uncaught (in promise) TypeError: this._id.toLowerCase is not a function Test plan: 1.) Admin - table settings: cgi-bin/koha/admin/columns_settings.pl#eholdings|packages Activate checkbox "Save search state on page change" 2.) Go to ERM : cgi-bin/koha/erm/eholdings/local/packages And create two packages: - One package with My Vendor assigned. - One package without a vendor. 3.) Filter the package results list by My Vendor. --> List is filtered to one package 4.) Leave the page, for example by navigating to Agreements. Return to the Packages list and you will see the issue (See also attached Screenshot) => Without the patch The package results list becomes unresponsive / hangs after returning to the page. => With the patch The package results list should load and display the filtered results correctly. Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #4 from Michaela Sieber <michaela.sieber@kit.edu> --- This Bug exists also in older versions (e.g.24.11) Please backport if possible -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org