Skip to content
Snippets Groups Projects
Commit 2a8cc5ad authored by Raphaël Doursenaud's avatar Raphaël Doursenaud
Browse files

Fix a bug preventing module enablement with PostgreSQL

parent 4d2a77a6
Branches
Tags
No related merge requests found
......@@ -114,7 +114,11 @@ class Menubase
$obj=$this->db->fetch_object($resqlrowid);
$maxrowid=$obj->maxrowid;
// Max rowid can be empty if there is no record yet
if(empty($maxrowid)) $maxrowid=1;
$sql = "SELECT setval('".MAIN_DB_PREFIX."menu_rowid_seq', ".($maxrowid).")";
//print $sql; exit;
$resqlrowidset=$this->db->query($sql);
if (! $resqlrowidset) dol_print_error($this->db);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment