Bug 41058

Summary: Using Show Checkouts button when LoadCheckoutsTableDelay is set causes collision/error. loadIssuesTableDelayTimeoutId not assigned
Product: Koha Reporter: Michael Grgurev <mike.grgurev>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P4 CC: gmcharlt, jonathan.druart, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: Small patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: [PATCH] Bug 41058: Assign timeout id when delaying issues table load

Description Michael Grgurev 2025-10-20 18:20:44 UTC
Manually selecting the "Show Checkouts" button does not cancel the setTimeout associated with LoadCheckoutsTableDelay (Checkouts table will show automatically in blah seconds..)

In /intranet-tmpl/prog/js/checkouts.js, loadIssuesTableDelayTimeoutId is declared and  targeted by clearTimeout() but never applied to the setTimeout() that triggers LoadIssuesTable().

Lines 712 & 735 should be revised from

"setTimeout(function () {"

to 

"loadIssuesTableDelayTimeoutId = setTimeout(function () {"
Comment 2 Jonathan Druart 2025-10-23 11:01:00 UTC
Can you attach your patch here?
Comment 3 Michael Grgurev 2025-10-27 22:18:34 UTC
Created attachment 188492 [details] [review]
[PATCH] Bug 41058: Assign timeout id when delaying issues table load

Well.. hopefully I formatted this right.