David Cook
7164cbd0bd
Don't validate numericality if blank
...
This avoids unnecessary second message when left blank:
> can't be blank
> is not a number
Ok this is a little confusing. Why is there a separate presence check above, and why is it only for measurable units, when we still require a number for _all_ units? Because, for 'items', we allow a blank value then auto-set it to 1.
I don't know if it's really necessary, but that's how it currently works...
2024-02-16 08:51:53 +11:00
..
2023-08-03 10:29:40 +01:00
2023-09-12 23:19:05 +09:00
2024-01-29 13:21:13 +11:00
2021-06-17 23:07:26 +01:00
2023-11-17 09:00:50 +09:00
2024-02-16 08:51:53 +11:00
2021-09-10 14:40:46 +10:00
2023-08-11 15:41:34 +10:00
2023-08-11 10:14:47 +10:00
2023-09-26 09:50:08 +09:00
2023-09-12 23:19:05 +09:00
2023-12-20 16:35:00 +11:00
2023-12-21 18:56:11 +00:00
2023-08-11 10:14:47 +10:00
2023-08-11 10:14:47 +10:00
2023-10-06 10:58:49 +09:00
2023-08-11 10:14:47 +10:00
2023-08-11 10:14:47 +10:00
2024-01-29 14:12:28 +11:00
2023-08-20 12:33:43 +09:00
2023-09-01 08:55:56 +09:00
2023-08-11 10:14:47 +10:00
2023-09-12 23:19:05 +09:00
2023-08-11 10:14:47 +10:00
2023-12-15 11:50:04 +11:00
2023-08-11 10:14:43 +10:00
2023-09-12 23:19:05 +09:00
2023-10-28 14:02:44 +05:00
2023-08-11 10:14:43 +10:00
2023-12-11 08:26:32 +01:00
2023-10-16 16:37:47 +11:00
2023-09-04 17:07:07 +10:00
2023-10-06 10:58:49 +09:00
2023-09-12 23:19:05 +09:00
2023-08-20 12:33:43 +09:00
2023-11-15 10:29:05 +01:00
2023-08-11 10:14:43 +10:00
2023-06-23 09:08:04 +09:00
2024-01-17 15:16:51 +11:00
2023-08-11 10:14:43 +10:00
2023-08-11 10:14:43 +10:00
2023-08-11 10:14:43 +10:00
2023-08-22 10:22:26 +01:00
2023-08-20 12:33:43 +09:00
2023-09-25 09:49:55 +02:00
2023-03-07 15:38:50 +11:00