mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
Do not add 'required' if not set and false wanted
The 'required' property of a 'Param' is optional and defaults to false. Thus there is no reason for adding it when it was not set and the user wants it to be false. Bug: 61761 Change-Id: I2b2fae5d2d8b1dac2ad2e1a965d9ba5bd7372eef
This commit is contained in:
parent
6e78aaa9b1
commit
6a014700da
|
@ -580,7 +580,7 @@
|
|||
break;
|
||||
case 'required':
|
||||
newValue = $domEl.prop( 'checked' );
|
||||
if ( paramObj[paramProp] !== newValue ) {
|
||||
if ( paramObj[paramProp] !== undefined || newValue === true ) {
|
||||
paramObj[paramProp] = newValue;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue