Browse Source

Merge pull request #477 from jonathaningram/patch-2

[Sluggable] Remove unused variable $fields
Gediminas Morkevicius 12 năm trước cách đây
mục cha
commit
a7acf80a2c
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      lib/Gedmo/Sluggable/SluggableListener.php

+ 0 - 1
lib/Gedmo/Sluggable/SluggableListener.php

@@ -189,7 +189,6 @@ class SluggableListener extends MappedEventSubscriber
         $config = $this->getConfiguration($om, $meta->name);
         foreach ($config['slugs'] as $slugField => $options) {
             $options['useObjectClass'] = $config['useObjectClass'];
-            $fields = $options['fields'];
             // collect the slug from fields
             $slug = $meta->getReflectionProperty($slugField)->getValue($object);
             // if slug should not be updated, skip it