Go to file
Stefan Reiter 15206214d9 ComboGrid: fix on-load validation for blank values
Commit f32aa3df74 fixed marking multi-select fields with where the store
did not contain a valid value after loading.

However, it introduced a bug for single-select fields where the value
(before the store-load) was explicitly set to be empty (when that should
be invalid because of allowBlank === false).

Fix the logic to correctly detect all scenarios (with def being the
value selected before the store loaded, i.e. undefined or an empty
array):

  !allowBlank &&
    ( def is an array but empty || def is not an array and falsy )

Also use correct error message (localized by ExtJS itself).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-01-30 16:14:03 +01:00
button Ext.Msg: switch from depreacated msg to message property 2019-11-26 12:58:50 +01:00
css add pmx-hint css class 2019-10-09 09:10:33 +02:00
data tree-wide trailing whitespace cleanup 2019-09-30 08:00:34 +02:00
debian bump version to 2.1-2 2019-12-17 12:02:59 +01:00
form ComboGrid: fix on-load validation for blank values 2020-01-30 16:14:03 +01:00
grid save index on keydown and check on keyup 2018-05-02 15:53:35 +02:00
images ComboGrid: add trigger to delete from ComboGrid 2019-08-13 15:37:26 +02:00
mixin cbind: allow to pass "formula" function in binding 2020-01-30 15:52:06 +01:00
node networkedit: add mtu field 2020-01-13 18:37:33 +01:00
panel tree-wide trailing whitespace cleanup 2019-09-30 08:00:34 +02:00
window window: edit: allow to set submit text for data binding 2020-01-30 15:54:09 +01:00
defines.mk add css and image directory to packaging 2019-08-13 15:37:26 +02:00
Makefile add css and image directory to packaging 2019-08-13 15:37:26 +02:00
Toolkit.js fix Firefox spinner scroller 2020-01-11 15:59:03 +01:00
Utils.js parse_task_upid: Allow additional (optional) task_id field 2019-12-17 11:51:46 +01:00