Commit e3a0f6d0 authored by François Agneray's avatar François Agneray
Browse files

Fixed bug: criteria ou output null

parent f36741a2
......@@ -631,8 +631,8 @@ class Attribute implements \JsonSerializable
'vo_description' => $this->getVoDescription(),
'vo_datatype' => $this->getVoDatatype(),
'vo_size' => $this->getVoSize(),
'id_criteria_family' => $this->getCriteriaFamily()->getId(),
'id_output_category' => $this->getOutputCategory()->getId()
'id_criteria_family' => is_null($this->getCriteriaFamily()) ? null : $this->getCriteriaFamily()->getId(),
'id_output_category' => is_null($this->getOutputCategory()) ? null : $this->getOutputCategory()->getId()
];
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment