Skip to content
Snippets Groups Projects
Commit 5c21b906 authored by damjan's avatar damjan
Browse files

[BUGFIX] Wrong stdClass field name

parent a9caf87c
No related branches found
No related tags found
No related merge requests found
......@@ -407,13 +407,13 @@ class Attribute {
} else {
$this->maxVersion = NULL;
}
if (isset($attribute->parent)) {
$this->parent = $attribute->parent;
if (isset($attribute->parent_id)) {
$this->parent = $attribute->parent_id;
} else {
$this->parent = NULL;
}
if (isset($attribute->type)) {
$this->type = $attribute->type;
if (isset($attribute->type_id)) {
$this->type = $attribute->type_id;
} else {
$this->type = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment