Skip to content

Commit

Permalink
Fix: Reorder of boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 18, 2010
1 parent fdc13a2 commit 5413265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions htdocs/ajaxbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
// 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);
Expand Down
3 changes: 2 additions & 1 deletion htdocs/boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ function saveboxorder($zone,$boxorder,$userid=0)

if (! $userid || $userid == 0) return 0;

$user = new User($this->db,$userid);
$user = new User($this->db);
$user->id=$userid;

$this->db->begin();

Expand Down

0 comments on commit 5413265

Please sign in to comment.