Loading src/Form/CMMAddMediaForm.php +3 −2 Original line number Diff line number Diff line Loading @@ -618,8 +618,9 @@ class CMMAddMediaForm extends ConfigFormBase { } if ($set_id == 'all') { foreach ($this->cocoonController->getSets() as $set) { $images = array_merge($images, get_cached_data('cocoon_media:set_' . $set['id'], [ $sets = $this->cocoonController->getSets(); foreach ($sets as $set) { $images = array_merge($images, $this->cocoonController->getCachedData('cocoon_media:set_' . $set['id'], [ $this->cocoonController, 'getFilesBySet', ], [$set['id']], $this->cacheDuration)); Loading Loading
src/Form/CMMAddMediaForm.php +3 −2 Original line number Diff line number Diff line Loading @@ -618,8 +618,9 @@ class CMMAddMediaForm extends ConfigFormBase { } if ($set_id == 'all') { foreach ($this->cocoonController->getSets() as $set) { $images = array_merge($images, get_cached_data('cocoon_media:set_' . $set['id'], [ $sets = $this->cocoonController->getSets(); foreach ($sets as $set) { $images = array_merge($images, $this->cocoonController->getCachedData('cocoon_media:set_' . $set['id'], [ $this->cocoonController, 'getFilesBySet', ], [$set['id']], $this->cacheDuration)); Loading