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

Latte: fixed adding dynamic snippets to payload #1358

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

Conversation

Werkov
Copy link

@Werkov Werkov commented Jan 17, 2014

When static snippet wrapper (or snippetArea) contained a dynamic
snippet wrapped in a block (i.e. static snippet -> block -> dynamic
snippet), rendered dynamic snippets weren't added into payload.

Cause was that information was shared via scope which was different for
nested block (block is a function call) and snippet wrapper.

Fix was done via shared reference to a stdClass object.

When static snippet wrapper (or snippetArea) contained a dynamic
snippet wrapped in a block (i.e. static snippet -> block -> dynamic
snippet), rendered dynamic snippets weren't added into payload.

Cause was that information was shared via scope which was different for
nested block (block is a function call) and snippet wrapper.

Fix was done via shared reference to a stdClass object.
@Majkl578
Copy link
Contributor

Add a test and fix existing ones.

@Werkov
Copy link
Author

Werkov commented Jan 17, 2014

OK, I will do it, however, it may take some time till I get down to it.

@hrach
Copy link
Contributor

hrach commented Jan 18, 2014

@dg
Copy link
Member

dg commented May 10, 2016

@matej21 what do you think about this?

@matej21
Copy link
Contributor

matej21 commented May 10, 2016

@dg looks ok to me

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

Successfully merging this pull request may close these issues.

None yet

5 participants