Skip to content

Commit

Permalink
Merge pull request #6453 from rossriley/fix/slug-key-repeaters
Browse files Browse the repository at this point in the history
The continued war on slugs
  • Loading branch information
bobdenotter committed Mar 4, 2017
2 parents d02ffc6 + 369aea2 commit 006cc13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Legacy/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,8 @@ public function getRepeaters($content)

// Get the contenttype from first $content
$first = reset($content);
$contenttypeslug = $first->contenttype['slug'];
// Try with the key first, if this isn't available then fall back to using the slug
$contenttypeslug = (isset($first->contenttype['key'])) ? $first->contenttype['key'] : $first->contenttype['slug'] ;
$contenttype = $this->getContentType($contenttypeslug);
$repo = $this->app['storage']->getRepository('Bolt\Storage\Entity\FieldValue');

Expand Down

0 comments on commit 006cc13

Please sign in to comment.