make sure scripts are kept marked as published when syncing up

This commit is contained in:
Michal Moskal 2015-05-19 13:02:53 +01:00
Родитель 2c345a102c
Коммит 823bd86435
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -273,7 +273,8 @@ module TDev {
body.script = "";
else if ((Cloud.lite && body.status == "published") || body.status == "unpublished" || body.status == "tobepublished") {
body.script = sanitizeScriptTextForCloud(data.script);
body.status = "unpublished";
if (body.status == "tobepublished")
body.status = "unpublished";
}
else
body.script = undefined;