-
Notifications
You must be signed in to change notification settings - Fork 46
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
add missing env informations to block #401 #403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For env options 'index'
, 'itemsCount'
, 'isFirst'
, 'isLast'
, 'isPrevEqual'
, 'isNextEqual'
and 'equalIndex'
it's fine now.
But for env option 'pageObject'
luya-module-cms/src/models/NavItemPage.php
Line 479 in 1a867a8
$blockObject = $blockItem->block->getObject($blockItem->id, 'admin', $navItemPage); |
NavItem
instead of NavItemPage
is needed as third argument.
I've made new unit tests for the envOptions: ef4efcd. And they have proven their worth – my Block Test
Block Placeholder Iteration Test
|
@hbugdoll i will merge this PR.. You can send then a PR with only the unit tests and the according fix. ok? Afterwards we will take a look at the page object in another PR. |
@hbugdoll you can now create a fresh merge request using the latest master (don't forget to create a branch on your fork). |
closes #401