Page MenuHomePhabricator

Template Documentation Editor: Suggested, Required, Deprecated values cannot be unset
Closed, ResolvedPublic

Description

I used the following simple template:

<noinclude>
<templatedata>
{
	"params": {
		"param1": {
			"default": "",
			"autovalue": "2",
			"suggested": true
		}
	}
}
</templatedata>
</noinclude>

Edit Source-> Manage TemplateData. In Template Documentation Editor

  • change the value of 'Suggested' of param1 to zero - the changes won't be applied
  • add 'Required' - the changes will be saved and applied
  • try to change 'Required' value to zero - the changes are not saved/applied.

Event Timeline

Etonkovidova assigned this task to Mooeypoo.
Etonkovidova raised the priority of this task from to High.
Etonkovidova updated the task description. (Show Details)
Etonkovidova subscribed.

Change 193007 had a related patch set uploaded (by Mooeypoo):
Delete boolean values if they are false

https://gerrit.wikimedia.org/r/193007

Change 193007 merged by jenkins-bot:
Delete boolean values if they are false

https://gerrit.wikimedia.org/r/193007