Merge "GUI: Don't set format: null when outputting data"

This commit is contained in:
jenkins-bot 2016-04-08 16:24:39 +00:00 committed by Gerrit Code Review
commit 74f13b9914
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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 );