Skip to content

Commit

Permalink
Merge pull request #19 from netgen-layouts/bugfix-contentbrowser-star…
Browse files Browse the repository at this point in the history
…t-location

Add missing start_location parameter for ezcomponent content browser
  • Loading branch information
emodric authored Aug 7, 2023
2 parents e53998e + bdfaf78 commit bc4fa33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bundle/Resources/views/app/form/form_div_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{% set default_parent_location = ezpublish.configResolver.parameter('ezcomponent.default_parent_location', 'netgen_layouts') %}

{% set content_type_identifier = form.parent['content_type_identifier'].vars.value %}
{% set start_location = parent_locations[content_type_identifier] ?? default_parent_location %}

{% set custom_params = custom_params|merge({
allowed_content_types: [content_type_identifier]
Expand Down

0 comments on commit bc4fa33

Please sign in to comment.