Commit 84edbd1f authored by Sebastian Castro's avatar Sebastian Castro

Fixs validate modified pending element

parent 31be21cc
parameters: parameters:
app.version: 2.0.6 app.version: 2.0.7
\ No newline at end of file \ No newline at end of file
...@@ -1281,6 +1281,12 @@ class Element ...@@ -1281,6 +1281,12 @@ class Element
$this->images[] = $image; $this->images[] = $image;
} }
public function setImages($images)
{
$this->images = $images;
}
/** /**
* Remove image * Remove image
* *
......
...@@ -119,7 +119,7 @@ class ElementPendingService ...@@ -119,7 +119,7 @@ class ElementPendingService
if ($modifiedElement) if ($modifiedElement)
{ {
// copying following attributes // copying following attributes
$attributes = ['name', 'geo', 'address', 'commitment', 'description', 'descriptionMore', 'telephone', 'email', 'website', 'optionValues', 'openHours', 'openHoursMoreInfos']; $attributes = ['name', 'geo', 'address', 'optionValues', 'email', 'openHours', 'images', 'data', 'privateData'];
foreach ($attributes as $key) foreach ($attributes as $key)
{ {
$getter = 'get' . ucfirst($key); $getter = 'get' . ucfirst($key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment