Fixed REST response when setting a schedule's localtime attribute.
@@ -666,9 +666,19 @@ int DeRestPluginPrivate::setScheduleAttributes(const ApiRequest &req, ApiRespons
QVariantMap rspItem;
QVariantMap rspItemState;
+ if (map.contains(QLatin1String("localtime")))
+ {
+ rspItemState[QString("/schedules/%1/localtime").arg(id)] = map["localtime"];
+ rspItem["success"] = rspItemState;
+ rsp.list.append(rspItem);
+ }
+ rspItemState.clear();
+ if (map.contains(QLatin1String("time")))
+ {
rspItemState[QString("/schedules/%1/time").arg(id)] = map["time"];
rspItem["success"] = rspItemState;
rsp.list.append(rspItem);
+ }
rsp.httpStatus = HttpStatusOk;
}
