https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42981

--- Comment #5 from Matt Blenkinsop <[email protected]> ---
Created attachment 202170
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202170&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 <[email protected]>
Signed-off-by: Matt Blenkinsop <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to