27 Oct
2021
27 Oct
'21
2:12 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29275 --- Comment #10 from Tomás Cohen Arazi <tomascohen@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.
I tried, but things get a bit harder to understand and I didn't feel like the trade-off justified a generalization. -- You are receiving this mail because: You are watching all bug changes.