mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
Merge "GUI: Don't set format: null when outputting data"
This commit is contained in:
commit
74f13b9914
|
@ -895,7 +895,11 @@ mw.TemplateData.Model.prototype.outputTemplateData = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format
|
// Format
|
||||||
result.format = this.format;
|
if ( this.format === null ) {
|
||||||
|
delete result.format;
|
||||||
|
} else {
|
||||||
|
result.format = this.format;
|
||||||
|
}
|
||||||
|
|
||||||
// Attach sets as-is for now
|
// Attach sets as-is for now
|
||||||
// TODO: Work properly with sets
|
// TODO: Work properly with sets
|
||||||
|
|
|
@ -141,8 +141,7 @@
|
||||||
'day'
|
'day'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
format: null
|
|
||||||
};
|
};
|
||||||
finalJson.description[ currLanguage ] = 'Label unsigned comments in a conversation.';
|
finalJson.description[ currLanguage ] = 'Label unsigned comments in a conversation.';
|
||||||
|
|
||||||
|
@ -628,8 +627,7 @@
|
||||||
' "params": {}\n' +
|
' "params": {}\n' +
|
||||||
'}</templatedata>',
|
'}</templatedata>',
|
||||||
simpleTemplateDataDefaultFormat = {
|
simpleTemplateDataDefaultFormat = {
|
||||||
params: {},
|
params: {}
|
||||||
format: null
|
|
||||||
};
|
};
|
||||||
|
|
||||||
QUnit.expect( 1 );
|
QUnit.expect( 1 );
|
||||||
|
|
Loading…
Reference in a new issue