Browse Source

FIX #29225

Laurent Destailleur 1 year ago
parent
commit
60bc60db48
2 changed files with 1 additions and 5 deletions
  1. 1 3
      htdocs/hrm/class/skill.class.php
  2. 0 2
      htdocs/hrm/class/skilldet.class.php

+ 1 - 3
htdocs/hrm/class/skill.class.php

@@ -408,7 +408,7 @@ class Skill extends CommonObject
 		$this->lines = array();
 		require_once __DIR__ . '/skilldet.class.php';
 		$skilldet = new Skilldet($this->db);
-		$this->lines = $skilldet->fetchAll('ASC', '', '', '', array('fk_skill' => $this->id), '');
+		$this->lines = $skilldet->fetchAll('ASC', '', 0, 0, array('fk_skill' => $this->id));
 
 		if (is_array($this->lines)) {
 			return (count($this->lines) > 0) ? $this->lines : array();
@@ -434,8 +434,6 @@ class Skill extends CommonObject
 	 */
 	public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND')
 	{
-		global $conf;
-
 		dol_syslog(__METHOD__, LOG_DEBUG);
 
 		$records = array();

+ 0 - 2
htdocs/hrm/class/skilldet.class.php

@@ -356,8 +356,6 @@ class Skilldet extends CommonObjectLine
 	 */
 	public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND')
 	{
-		global $conf;
-
 		dol_syslog(__METHOD__, LOG_DEBUG);
 
 		$records = array();