Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3520ef5d authored by Nicolas's avatar Nicolas
Browse files

Correction du DataPersistor

parent 5f383e07
No related branches found
No related tags found
No related merge requests found
......@@ -80,13 +80,13 @@ class DataProvider extends AbstractDataProvider
}
}
$data = $this->dataPersistor->get('nicolasbejean_categorywidget');
$data = $this->dataPersistor->get('nicolasbejean_categorywidget_item');
if (!empty($data)) {
$categoryWidget = $this->collection->getNewEmptyItem();
$categoryWidget->setData($data);
$this->loadedData[$categoryWidget->getId()] = $categoryWidget->getData();
$this->dataPersistor->clear('nicolasbejean_categorywidget');
$this->dataPersistor->clear('nicolasbejean_categorywidget_item');
}
return $this->loadedData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment