[Koha-bugs] [Bug 29275] issuehistory.pl is very slow when there are many historical issues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 16 20:19:45 CET 2021


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

--- Comment #16 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Victor Grousset/tuxayo from comment #8)
> A diff between current_checkouts and old_checkouts functions show that they
> have a lot of duplication.
> Is there a way to deduplicate without making something messy?
> I wonder if there is a way to assign old_checkouts as a copy of
> current_checkouts and then re assign so it it's properties to add and change
> stuff.
> The only difference is the URL param and a render function.

Not just that. But I made a function to avoid duplication.

> Also a call to encodeURIComponent() might be missing in current_checkouts

Solved!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list