idleman преди 5 години
родител
ревизия
2a61d358f5
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      plugin/hackpoint/action.php

+ 1 - 3
plugin/hackpoint/action.php

@@ -65,6 +65,7 @@ switch($_['action']){
 			$item = Sketch::getById($_['id']);
 
 			if(isset($_['label'])) $item->label = $_['label'];
+			$item->progress = 5;
 			if(isset($_['state'])) $item->state = $_['state'] == 'true';
 			if(isset($_['comment']))  $item->comment = $_['comment'];
 			$item->save();
@@ -77,9 +78,6 @@ switch($_['action']){
 			global $myUser,$_;
 			
 			require_once(__DIR__.SLASH.'Sketch.class.php');
-
-			Sketch::staticQuery('ALTER TABLE {{table}} ADD progress INTEGER;');
-
 			$item = Sketch::getById($_['id']);
 			if($myUser->login!=$item->creator) throw new Exception("Permissions insuffisantes",403);
 			$item->progress = $_['progress'];