|
@@ -49,8 +49,9 @@ switch($_['action']){
|
|
|
if(!$myUser->can('hackpoint','edit')) throw new Exception("Permissions insuffisantes",403);
|
|
|
require_once(__DIR__.SLASH.'Sketch.class.php');
|
|
|
$item = Sketch::getById($_['id']);
|
|
|
+
|
|
|
if(isset($_['label'])) $item->label = $_['label'];
|
|
|
- if(isset($_['state'])) $item->state = $_['state'];
|
|
|
+ if(isset($_['state'])) $item->state = $_['state'] == 'true';
|
|
|
if(isset($_['comment'])) $item->comment = $_['comment'];
|
|
|
$item->save();
|
|
|
});
|