Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set viewParameter is missing #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flovntp
Copy link
Contributor

@flovntp flovntp commented Apr 29, 2022

otherwise, nothing is passed to the view in Ibexa 3.2.8.
And maybe it could be enhanced as doing this will directly push parameters in viewParameters, without prefixing it by provider_identifier.

otherwise, nothing is passed to the view in Ibexa 3.2.8.
And maybe it could be enhanced as doing this will directly push parameters in viewParameters, without prefixing it by provider_identifier.
@@ -115,7 +115,8 @@ public function onPreContentView(PreContentViewEvent $event)
// The resulted array is casted to object (stdClass) for convenient use in templates.
// Parameter name will be unchanged. Parameters returned by provider will then be "namespaced" by the parameter name.
$provider = $this->parameterProviders[$param['provider']];
$param = (object) $provider->getViewParameters($this->generateConfigurableView($view), $paramProviderOptions);
$param = $provider->getViewParameters($this->generateConfigurableView($view), $paramProviderOptions);
$view->setParameters($param);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed as setParameters() is called a few lines below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants