Browse Source

Correctif bug proess effacé

idleman 4 years ago
parent
commit
20ac187bdd
3 changed files with 5 additions and 2 deletions
  1. 1 1
      install.php
  2. 3 1
      plugin/hackpoint/action.php
  3. 1 0
      plugin/hackpoint/page.list.sketch.php

+ 1 - 1
install.php

@@ -154,7 +154,7 @@ try {
 				$right->save();
 			}
 
-			$enablePlugins = array('fr.sys1.factory','fr.sys1.dashboard','fr.sys1.notification','fr.sys1.navigation');
+			global $enablePlugins = array('fr.sys1.factory','fr.sys1.dashboard','fr.sys1.notification','fr.sys1.navigation');
 
 
 			if(!empty($custom['action'])) require_once($custom['pluginPath'].$custom['action']);

+ 3 - 1
plugin/hackpoint/action.php

@@ -64,7 +64,9 @@ switch($_['action']){
 			$item = Sketch::getById($_['id']);
 
 			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($_['comment']))  $item->comment = $_['comment'];
 			$item->save();

+ 1 - 0
plugin/hackpoint/page.list.sketch.php

@@ -2,6 +2,7 @@
 global $myUser,$conf;
 
 
+
 require_once(__DIR__.SLASH.'Sketch.class.php');
 
 ?>