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

--- Comment #205 from ChloĆ© Zermatten <[email protected]> ---
(In reply to Jonathan Druart from comment #204)
> In the last patch:
> -                    min;
> +                    `${min}`;
> 
> Why this kind of changes exactly?

The idea here is to consistently prevent JS data-types shenanigans and oddness
from occurring, really - we're ensuring that once the number is calculated, we
convert it to a string. 

Effectively, I went with:

- anything that gets assigned to the Vue template: convert to string first.
- when manipulating numbers (which we mostly get as string from the relevant
input field): convert to integer first.

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