Project

General

Profile

Actions

Bug #7743

closed

FormElement.min = 0 has no effect

Added by Nicola Chiapolini about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
25.01.2019
Due date:
% Done:

100%

Estimated time:
Discuss:
Prio Planung:
Vote:

Description

I do have an input field for ECTS points, so I would like to enforce the value in [0, 1, 2, ...)
However even after setting FormElement.min = 0, the "cycle buttons" still go to negative numbers and these are not marked as "error" (A not very useful message BTW) when entered directly. It seems min is considered to be unset when the value is 0.

Choosing digit as Sanitize class enforces positive integers, however it would be nice if the interface suggested correct values only (And the error message there is probably too cryptic for normal users too, I would not show the pattern unless there is a user logged in in the backend.)

Actions

Also available in: Atom PDF