|
@@ -64,7 +64,9 @@ switch($_['action']){
|
|
$item = Sketch::getById($_['id']);
|
|
$item = Sketch::getById($_['id']);
|
|
|
|
|
|
if(isset($_['label'])) $item->label = $_['label'];
|
|
if(isset($_['label'])) $item->label = $_['label'];
|
|
- $item->progress = 5;
|
|
|
|
|
|
+
|
|
|
|
+ if($item->id==0) $item->progress = 5;
|
|
|
|
+
|
|
if(isset($_['state'])) $item->state = $_['state'] == 'true';
|
|
if(isset($_['state'])) $item->state = $_['state'] == 'true';
|
|
if(isset($_['comment'])) $item->comment = $_['comment'];
|
|
if(isset($_['comment'])) $item->comment = $_['comment'];
|
|
$item->save();
|
|
$item->save();
|