- πΊπ¦Ukraine pingwin4eg Zaporizhia πΊπ¦
quietone β credited pingwin4eg β .
- π³πΏNew Zealand quietone
closed π Numeric item min/max settings ignored if set to 0 Postponed: needs info as a duplicate and moving credit.
Numeric item fields do not have their minimum value validated if the minimum value is zero. This allows for negative values for decimal items or numeric item fields that are not flagged as unsigned.
This is due to a not-empty check:
if (!empty($settings['min'])) {
$min = $settings['min'];
$constraints[] = $constraint_manager->create('ComplexData', [
'value' => [
'Range' => [
'min' => $min,
'minMessage' => t('%name: the value may be no less than %min.', ['%name' => $label, '%min' => $min]),
],
],
]);
}
Zero is technically empty.
Check if the value is not equal to ''
Fixed
8.8 β°οΈ
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
quietone β credited pingwin4eg β .
closed π Numeric item min/max settings ignored if set to 0 Postponed: needs info as a duplicate and moving credit.