mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +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) {
|
||||
$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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user