// 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() public function getFields()
{ {
$this->validateFields(); $this->validateFields();
return $this->formatFields(); $fields = $this->formatFields();
if (!$fields)
$fields[$this->def['primary']] = $this->id;
return $fields;
} }
/** /**
-2
View File
@@ -197,8 +197,6 @@ class InstallXmlLoader
} }
while ($current != $sort_entities); while ($current != $sort_entities);
$start = microtime(true);
// Populate entities // Populate entities
foreach ($sort_entities as $entity) foreach ($sort_entities as $entity)
{ {