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' => [