From 650339c519338b06ac0061da9d143b885139e102 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 10 Nov 2022 08:24:07 +0100 Subject: [PATCH] return id of attribute as int --- restapi/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restapi/index.php b/restapi/index.php index b7c68cd0d..fd4274d49 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -56,14 +56,14 @@ class RestapiController { /* {{{ */ foreach($attributes as $attrdefid=>$attribute) { $attrdef = $attribute->getAttributeDefinition(); $attrvalues[] = array( - 'id'=>$attrdef->getId(), + 'id'=>(int) $attrdef->getId(), 'name'=>$attrdef->getName(), 'value'=>$attribute->getValue() ); } } return $attrvalues; - } + } /* }}} */ protected function __getDocumentData($document) { /* {{{ */ $data = array(