From a7f7e0c525951c6cbac921817a773a18ba427497 Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Fri, 12 Apr 2024 21:17:22 -0400 Subject: [PATCH] debug --- inc/devicesync.class.php | 2 +- tests/units/PluginJamfMobileSync.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/devicesync.class.php b/inc/devicesync.class.php index 649bf7b..f1fecaf 100644 --- a/inc/devicesync.class.php +++ b/inc/devicesync.class.php @@ -161,7 +161,7 @@ public static function syncExtensionAttributeDefinitions(): void $attr = static::$api::getItemsClassic($api_itemtype, ['id' => $attribute['id']]); $input = [ 'jamf_id' => $attr['id'], - 'jamf_type' => static::$jamfplugin_itemtype, + 'jamf_type' => static::$jamf_itemtype, 'name' => $DB->escape($attr['name']), 'description' => $DB->escape($attr['description']), 'data_type' => $DB->escape($attr['data_type']) diff --git a/tests/units/PluginJamfMobileSync.php b/tests/units/PluginJamfMobileSync.php index 9566dec..d7d8f25 100644 --- a/tests/units/PluginJamfMobileSync.php +++ b/tests/units/PluginJamfMobileSync.php @@ -117,6 +117,7 @@ public function testImportAsComputer() { $this->assertEquals(0, $link['activation_lock_enabled']); $this->assertEquals(null, $link['lost_mode_enabled']); + var_dump(getAllDataFromTable(PluginJamfItem_ExtensionAttribute::getTable())); $ext_attr_iterator = $DB->request([ 'FROM' => PluginJamfItem_ExtensionAttribute::getTable(), 'WHERE' => [