Page MenuHomePhabricator

Some values are removed from the JSON when emptied, some aren't
Open, Needs TriagePublicBUG REPORT

Description

While working on T295074: TemplateData adds empty autovalue we found a very closely related issue. Let's say you have a TemplateData JSON blob with a non-empty autovalue as well as a non-empty default value. Now open the editor and empty both the autovalue and the default. Result: The default is entirely removed from the JSON, but the "autovalue": "" stays behind with an empty string.

This should behave consistent.

Note that a field that was empty before should not be removed to not cause unexpected, dirty diffs.