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
|
||||
result.format = this.format;
|
||||
if ( this.format === null ) {
|
||||
delete result.format;
|
||||
} else {
|
||||
result.format = this.format;
|
||||
}
|
||||
|
||||
// Attach sets as-is for now
|
||||
// TODO: Work properly with sets
|
||||
|
|
|
@ -141,8 +141,7 @@
|
|||
'day'
|
||||
]
|
||||
}
|
||||
],
|
||||
format: null
|
||||
]
|
||||
};
|
||||
finalJson.description[ currLanguage ] = 'Label unsigned comments in a conversation.';
|
||||
|
||||
|
@ -628,8 +627,7 @@
|
|||
' "params": {}\n' +
|
||||
'}</templatedata>',
|
||||
simpleTemplateDataDefaultFormat = {
|
||||
params: {},
|
||||
format: null
|
||||
params: {}
|
||||
};
|
||||
|
||||
QUnit.expect( 1 );
|
||||
|
|
Loading…
Reference in a new issue