From 2655edb7092f21e9eb8d18d9efa0e39d0cfa58a8 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 23 Sep 2015 14:15:47 +0200 Subject: [PATCH] Add error log #7831 --- main/install/install.lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/install/install.lib.php b/main/install/install.lib.php index 5805c3a238..735eeb77d7 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -2180,6 +2180,9 @@ function fixIds(EntityManager $em) } $sql = "SELECT * FROM c_item_property"; $result = $connection->fetchAll($sql); + $counter = 0; + error_log("Items to process: ".count($result)); + foreach ($result as $item) { $courseId = $item['c_id']; $sessionId = intval($item['session_id']); @@ -2234,8 +2237,11 @@ function fixIds(EntityManager $em) $newId = $data['iid']; } $sql = "UPDATE c_item_property SET ref = $newId WHERE iid = $iid"; + error_log($sql); $connection->executeQuery($sql); } + error_log("Process item #$counter"); + $counter++; } if ($debug) {