Fix insert/update lp_item_view - refs BT#12546

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 1a68775e22
commit bf54e9738f
  1. 4
      main/lp/learnpath.class.php

@ -375,10 +375,10 @@ class learnpath
'total_time' => 0,
'score' => 0
];
$insertId = Database::insert($lp_item_view_table, $params);
$insertId = Database::insert($itemViewTable, $params);
if ($insertId) {
$sql = "UPDATE $lp_item_view_table SET id = iid
$sql = "UPDATE $itemViewTable SET id = iid
WHERE iid = $insertId";
Database::query($sql);
}

Loading…
Cancel
Save