FIX : PgSQL Module Ressource list crash #5637

This commit is contained in:
florian HENRY 2016-08-17 14:40:05 +02:00
parent 0cb7440647
commit 5c51cb0f29

View File

@ -393,7 +393,6 @@ class Resource extends CommonObject
}
}
}
$sql.= " GROUP BY t.rowid";
$sql.= $this->db->order($sortfield,$sortorder);
$this->num_all = 0;
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
@ -473,7 +472,6 @@ class Resource extends CommonObject
}
}
}
$sql.= " GROUP BY t.rowid";
$sql.= $this->db->order($sortfield,$sortorder);
if ($limit) $sql.= $this->db->plimit($limit+1,$offset);
dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);
@ -559,7 +557,6 @@ class Resource extends CommonObject
}
}
}
$sql.= " GROUP BY t.resource_id";
$sql.= $this->db->order($sortfield,$sortorder);
if ($limit) $sql.= $this->db->plimit($limit+1,$offset);
dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG);