Fix: Reorder of boxes
This commit is contained in:
parent
fdc13a2480
commit
541326579e
@ -36,6 +36,7 @@ require_once(DOL_DOCUMENT_ROOT."/boxes.php");
|
||||
// Registering the location of boxes
|
||||
if((isset($_GET['boxorder']) && !empty($_GET['boxorder'])) && (isset($_GET['userid']) && !empty($_GET['userid'])))
|
||||
{
|
||||
// boxorder value is the target order: "A:idboxA1,idboxA2,A-B:idboxB1,idboxB2,B"
|
||||
dol_syslog("AjaxBox boxorder=".$_GET['boxorder']." userid=".$_GET['userid'], LOG_DEBUG);
|
||||
|
||||
$infobox=new InfoBox($db);
|
||||
|
||||
@ -349,7 +349,8 @@ class InfoBox
|
||||
|
||||
if (! $userid || $userid == 0) return 0;
|
||||
|
||||
$user = new User($this->db,$userid);
|
||||
$user = new User($this->db);
|
||||
$user->id=$userid;
|
||||
|
||||
$this->db->begin();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user