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

--- Comment #596 from ChloĆ© Zermatten <[email protected]> ---
Created attachment 195996
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195996&action=edit
Bug 10190: fix NaN trigger number when adding first rule for a library

When no circulation rules exist for a library, triggerCounts[library_id]
is undefined, causing undefined + 1 = NaN. Use nullish coalescing to
default to 0 so the first trigger correctly gets number 1.

Signed-off-by: Michaela <[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