mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-01 02:46:15 +00:00
The parameter-type-change event should also fire if type was initially undefined
Bug: T260343 Change-Id: I26f50dfd6b4b747b1ef88d619df6aff5278d412a
This commit is contained in:
parent
aaf660f38c
commit
dfa86a7c71
|
@ -983,7 +983,7 @@ Dialog.prototype.startParameterInputTracking = function ( paramValues ) {
|
||||||
// Set to true, unless one of the exceptions applies.
|
// Set to true, unless one of the exceptions applies.
|
||||||
this.paramPropertyChangeTracking[ prop ] = !(
|
this.paramPropertyChangeTracking[ prop ] = !(
|
||||||
// Setting type when we already have a specific type.
|
// Setting type when we already have a specific type.
|
||||||
( prop === 'type' && paramValues[ prop ] !== 'unknown' ) ||
|
( prop === 'type' && paramValues[ prop ] !== undefined && paramValues[ prop ] !== 'unknown' ) ||
|
||||||
|
|
||||||
// Setting priority but already required, suggested, or deprecated.
|
// Setting priority but already required, suggested, or deprecated.
|
||||||
( ( prop === 'required' || prop === 'suggested' || prop === 'deprecated' ) &&
|
( ( prop === 'required' || prop === 'suggested' || prop === 'deprecated' ) &&
|
||||||
|
|
Loading…
Reference in a new issue