From 3a0d2267a7eb3c5748f48287e6885403c4ab8997 Mon Sep 17 00:00:00 2001 From: Coroliov Oleg Date: Wed, 7 Sep 2016 23:07:45 +0300 Subject: [PATCH] Fix: Key "provider" for array with keys "context, category, hide_context" does not exist https://github.com/coopTilleuls/CoopTilleulsCKEditorSonataMediaBundle/issues/17 --- Resources/views/MediaAdmin/browser.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/views/MediaAdmin/browser.html.twig b/Resources/views/MediaAdmin/browser.html.twig index d791407..a8be654 100644 --- a/Resources/views/MediaAdmin/browser.html.twig +++ b/Resources/views/MediaAdmin/browser.html.twig @@ -44,14 +44,14 @@ {% if providers|length > 1 %}
  • {{ "label.select_provider"|trans({}, 'SonataMediaBundle') }}
  • - {% if not persistent_parameters.provider %} + {% if (persistent_parameters.provider is not defined) or (not persistent_parameters.provider) %}
  • {{ "link.all_providers"|trans({}, 'SonataMediaBundle') }}
  • {% else %}
  • {{ "link.all_providers"|trans({}, 'SonataMediaBundle') }}
  • {% endif %} {% for provider_name in providers %} - {% if persistent_parameters.provider == provider_name%} + {% if (persistent_parameters.provider is defined) and (persistent_parameters.provider == provider_name) %}
  • {{ provider_name|trans({}, 'SonataMediaBundle') }}
  • {% else %}
  • {{ provider_name|trans({}, 'SonataMediaBundle') }}