mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
return id of attribute as int
This commit is contained in:
parent
cbf68b7ab6
commit
650339c519
|
@ -56,14 +56,14 @@ class RestapiController { /* {{{ */
|
||||||
foreach($attributes as $attrdefid=>$attribute) {
|
foreach($attributes as $attrdefid=>$attribute) {
|
||||||
$attrdef = $attribute->getAttributeDefinition();
|
$attrdef = $attribute->getAttributeDefinition();
|
||||||
$attrvalues[] = array(
|
$attrvalues[] = array(
|
||||||
'id'=>$attrdef->getId(),
|
'id'=>(int) $attrdef->getId(),
|
||||||
'name'=>$attrdef->getName(),
|
'name'=>$attrdef->getName(),
|
||||||
'value'=>$attribute->getValue()
|
'value'=>$attribute->getValue()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $attrvalues;
|
return $attrvalues;
|
||||||
}
|
} /* }}} */
|
||||||
|
|
||||||
protected function __getDocumentData($document) { /* {{{ */
|
protected function __getDocumentData($document) { /* {{{ */
|
||||||
$data = array(
|
$data = array(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user