// Fix profiles creation

This commit is contained in:
rMalie
2011-12-22 17:40:27 +00:00
parent 328c8460ec
commit abb2de5d12
2 changed files with 4 additions and 3 deletions
+4 -1
View File
@@ -233,7 +233,10 @@ abstract class ObjectModelCore
public function getFields()
{
$this->validateFields();
return $this->formatFields();
$fields = $this->formatFields();
if (!$fields)
$fields[$this->def['primary']] = $this->id;
return $fields;
}
/**