Fixed stupid bug in aspects.fixStoryEditoryParams() causing IE to publish stories closed/hidden/closed all the time

This commit is contained in:
Tobi Schäfer 2008-05-13 10:29:03 +00:00
parent e30fff7cce
commit 5b37a53eab

View file

@ -49,7 +49,9 @@ var aspects = {
},
fixStoryEditorParams: function(args, func, story) {
if (req.isPost() && (req.postParams.save != 1)) {
// FIXME: IE sends the button text instead of the value; thus, we
// need to check for the "editableby" property as well :/
if (req.isPost() && req.postParams.save != 1 && req.postParams.editableby) {
if (req.postParams.publish) {
req.postParams.save = 1;
}