Goodmorning, I have a problem with an integer field.
I change min value from 0 to -1, than Quick repair, but when I try to save the record, I’m not able cause a error on this field, “the value must be 0 or greater”.
I’m searching in file system and I found that for this field: in ./Extension/modules/myModule/Ext/Vardefs/sugarfield_myfield.php: and ./modules/myModule/Ext/Vardefs/vardefs.ext.php
I have this line: $dictionary['myModule']['fields']['myfield']['min']=-1;
Sorry, the exact message for validation is “fieldname should be 0 or greater” where fieldname = the name of the field, and 0, the value that is set for min attribute configuration field. In this case, 0 is old value.
My problem is that I change min value, from 0 to -1, but it seems don’t take the change and continue to take the old configuration.
To resolve this problem (but isn’t the correct solution) I work with javascript: remove validation to field, and then add new validation with my value.