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

Allow same section class for multiple section types (fix #10764) #10854

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

sualko
Copy link
Member

@sualko sualko commented Aug 25, 2018

This fixes a regression introduced in the upcoming NC 14.

return $this->sections[$type];
}

foreach ($this->sectionClasses[$type] as $index => $class) {
Copy link
Member

Choose a reason for hiding this comment

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

foreach ($this->sectionClasses[$type] as $class) { works in php

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but I need the index a couple of lines below

Copy link
Member

Choose a reason for hiding this comment

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

Ah in the unset.

Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

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

looks good and works

@MorrisJobke MorrisJobke merged commit c6b1c21 into master Aug 28, 2018
@MorrisJobke MorrisJobke deleted the fix-10764 branch August 28, 2018 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants