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

--- Comment #311 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 193902
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193902&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.

-- 
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