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

--- Comment #8 from Paul Derscheid <[email protected]> ---
Created attachment 194881
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194881&action=edit
Bug 41797: (QA follow-up) Fix empty results truthiness check

- The tidy converted a TT compile-time [% IF results %] to a
  runtime JS check on original_results
- original_results is always an array (fallback to []) and an
  empty array is truthy in JS, so the chart click handler was
  always registered even with no results
- Check .length instead to match the original server-side behavior

Signed-off-by: Paul Derscheid <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to