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

[TASK] Hide package label in page layout selector if no page layouts are provided #260

Closed
wants to merge 1 commit into from

Conversation

georg-tiefenbrunn
Copy link
Contributor

This patch makes PageLayoutSelector->renderOptions() return an empty string and thus does not render the package label if the provider extension does not provide any page layouts. See FluidTYPO3/flux#839 (comment)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 800f471 on georg-tiefenbrunn:development into 6541589 on FluidTYPO3:development.

require $emConfigFile;
$groupTitle = $EM_CONF['']['title'];
}
if (!empty($group)) {
Copy link
Member

Choose a reason for hiding this comment

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

empty($group) === FALSE please ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooops! CGL :) But shouldn't that be FALSE === empty($group)?

Copy link
Member

Choose a reason for hiding this comment

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

Of course, correct! I'm doing code reviews in four different CGLs this week, sorry about the confusion.

@georg-tiefenbrunn
Copy link
Contributor Author

Sorry. Using git commit --amend --no-edit && git push --force from the docs totally broke this PR. I'll start from scratch ...

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.

3 participants