core icon indicating copy to clipboard operation
core copied to clipboard

field variables should allow empty values on instantiation

Open wezell opened this issue 9 years ago • 2 comments

There is no reason field variables should not allow a key with an empty or null value when instantiated. Maybe we prevent the save, but not on instantiation.

wezell avatar Jun 08 '17 20:06 wezell

PR master: https://github.com/dotCMS/core/pull/11851

dsilvam avatar Jun 08 '17 21:06 dsilvam

Passed QA. Verified that field variables cannot save a key with empty/null values. Message on logs when attempted to save a field variable with empty value : ERROR factories.FieldFactory: FieldVariable.value cannot be empty

Response from REST when attempted to save a field variable with empty value: { "message":"FieldVariable.value cannot be empty" }

Tested locally using the following environments: Upgrade from dotcms_3.6 with client dataset (db and assets) to master branch / commit df7ff50790f273ac67afb31fe1a376c9feecbd0c Ubuntu 14.04.1 / Postgres 9.3.5 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8

shaydotcms avatar Jun 12 '17 18:06 shaydotcms