-
-
Notifications
You must be signed in to change notification settings - Fork 434
Description
Describe the bug
If you have a custom field attached to a Data Input Method, that field will only be validated for acceptable data upon being edited, not upon creation.
To Reproduce
Steps to reproduce the behavior:
-
Create a Data Source Template that allows the user to modify the value of Input Field

-
Create a Graph Template referencing that Data Source Template
-
Add a graph using that template to a device. Set the Custom Data to something outside the range of the validation pattern.

-
Edit the brand new Data Source and observe that the value is out of range.

-
Save the Data Source with no changes. Observe that the validation fails.

Expected behavior
I would expect the Input Field Checking validation pattern to be enforced upon creation of the Data Source, just as it is during the modification of the Data Source.
Version info
- Cacti 1.2.19
Additional context
I'm willing to help fix this, but some others probably know from memory where the relevant code is located.

