// Fix profiles creation

This commit is contained in:
rMalie committed 2011-12-22 17:40:27 +00:00
1 parent 328c8460ec
commit abb2de5d12
2 files changed
+4 -3

No files matched your search

+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;
}
/**