Issue Bug Closed

#95984Error in constants-editor for integer constants without defined range

Thomas Anders 11/15/21, 16:01 updated 11/15/21, 18:21

Description

Currently there seems to be a problem with the constants manager.
Lets say we have some integer constant defined:

# customsubcategory=example=Some Category

# cat=some constants/example/100; type=int; label=A really nice integer
const.dyingInteger = 

After hitting save, we will receive this error message:
clipboard-202111151651-9fzbw.png

Changing the constant to an “int+” or an “int[0-100]” its working.

# cat=some constants/example/100; type=int+; label=A really nice integer
const.workingInteger = 
# cat=some constants/example/100; type=int[0-100]; label=A really nice integer
const.anotherWorkingInteger = 

The docs clearly say, the range is an optional parameter (https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/UsingSetting/TheConstantEditor.html#type).
So I think there is no check if the parameter is set, but you must set one at the moment.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.