// Fix profiles creation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11649 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user