Skip to content

Commit

Permalink
Fix issue mentioned in #51
Browse files Browse the repository at this point in the history
  • Loading branch information
SahAssar authored Aug 3, 2016
1 parent 6610fd6 commit 091c06b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventListener/StorageListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public function preSave(StorageEvent $event)
$localeSlug = $request->get('_locale');

$record->set($localeSlug . '_slug', $values['slug']);
if ($values['_locale'] == reset($this->config->getLocales())->getSlug()) {
$locales = $this->config->getLocales();
if ($values['_locale'] == reset($locales)->getSlug()) {
$record->set($localeSlug . '_data', '[]');
return;
}
Expand Down

0 comments on commit 091c06b

Please sign in to comment.