diff --git a/CHANGELOG.md b/CHANGELOG.md index bc0666e..b0e23f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - SQL error when merging the Jamf device linked to a GLPI asset +- SQL error when adding `Event` ## [3.1.1] diff --git a/inc/computersync.class.php b/inc/computersync.class.php index ab07bd2..12787d6 100644 --- a/inc/computersync.class.php +++ b/inc/computersync.class.php @@ -630,7 +630,7 @@ public static function import(string $itemtype, int $jamf_items_id, $use_transac ]); if ($iterator->count()) { // Already imported - Event::log(-1, $itemtype, 4, 'Jamf plugin', "Jamf computer $jamf_items_id not imported. A {$itemtype::getTypeName(1)} exists with the same uuid."); + Event::log(0, $itemtype, 4, 'Jamf plugin', "Jamf computer $jamf_items_id not imported. A {$itemtype::getTypeName(1)} exists with the same uuid."); return false; } diff --git a/inc/mobilesync.class.php b/inc/mobilesync.class.php index 027a076..3cf6ec1 100644 --- a/inc/mobilesync.class.php +++ b/inc/mobilesync.class.php @@ -773,7 +773,7 @@ public static function import(string $itemtype, int $jamf_items_id, $use_transac } if ($iterator->count()) { // Already imported - Event::log(-1, $itemtype, 4, 'Jamf plugin', "Jamf mobile device $jamf_items_id not imported. A {$itemtype::getTypeName(1)} exists with the same uuid."); + Event::log(0, $itemtype, 4, 'Jamf plugin', "Jamf mobile device $jamf_items_id not imported. A {$itemtype::getTypeName(1)} exists with the same uuid."); return false; }