Commit 2956e7b4 authored by Jack Over's avatar Jack Over
Browse files

Issue #3315760 by scuba_fly: Images are not loaded on the media add page,...

Issue #3315760 by scuba_fly: Images are not loaded on the media add page, correct getCachedData call' --author="Jack Over <37248-scuba_fly@users.noreply.drupalcode.org>"
parent 267d0665
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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));