Browse Source

Fix class does not exist

Laurent Destailleur 3 years ago
parent
commit
db57aea163
1 changed files with 6 additions and 3 deletions
  1. 6 3
      htdocs/workstation/class/workstation.class.php

+ 6 - 3
htdocs/workstation/class/workstation.class.php

@@ -927,6 +927,7 @@ class Workstation extends CommonObject
 	{
 	{
 		$this->lines = array();
 		$this->lines = array();
 
 
+		/*
 		$objectline = new WorkstationLine($this->db);
 		$objectline = new WorkstationLine($this->db);
 		$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_workstation = '.((int) $this->id)));
 		$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_workstation = '.((int) $this->id)));
 
 
@@ -934,10 +935,12 @@ class Workstation extends CommonObject
 			$this->error = $this->error;
 			$this->error = $this->error;
 			$this->errors = $this->errors;
 			$this->errors = $this->errors;
 			return $result;
 			return $result;
-		} else {
-			$this->lines = $result;
-			return $this->lines;
 		}
 		}
+
+		$this->lines = $result;
+		*/
+
+		return $this->lines;
 	}
 	}
 
 
 	/**
 	/**