<![CDATA[ MIGXdb Validation Rules Don't Run Properly When Using Inline Editor - My Forums]]> https://forums.modx.com/thread/?thread=104977 <![CDATA[MIGXdb Validation Rules Don't Run Properly When Using Inline Editor]]> https://forums.modx.com/thread/104977/migxdb-validation-rules-don-t-run-properly-when-using-inline-editor#dis-post-564471 number data type, is required, and has a config of:
{"allowDecimals":"No","allowNegative":"No","minValue":"250","maxValue":"5000"}

Note that the column config for the field has the Cell Editor set to this.textEditor.

The validation works as expected when editing a record the typical way. But when entering an invalid value directly into the column in a grid, the value ends up being "0". I suspect what's happening is that the validation gets called but, in the case of inline editing, you don't an error message (in the form or by modal) and a chance to correct the value and the save process does not get interrupted; subsequently the value written to the db in empty.

Is this a known issue?]]>
smg6511v2 Mar 16, 2019, 07:13 PM https://forums.modx.com/thread/104977/migxdb-validation-rules-don-t-run-properly-when-using-inline-editor#dis-post-564471