Fix: Reorder of boxes

This commit is contained in:
Laurent Destailleur 2010-08-18 07:44:45 +00:00
parent fdc13a2480
commit 541326579e
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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();