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

Display categories with no discussions on "Mixed" layout #9938

Merged
merged 3 commits into from Jan 20, 2020

Conversation

igraziatto
Copy link
Contributor

Closes https://github.com/vanilla/support/issues/275

The issue It's not keystone related actually, it's just how this view works (disable the theme and you will see the same behavior).

The view doesn't render categories who have no discussions. Since you can't add discussions to categories type "Nested", it ignores them:

if ($this->DiscussionData->numRows() > 0) : ?>

Notes: The view seems to flat the category tree when rendering so I've just followed the same logic.

@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #9938 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #9938     +/-   ##
===========================================
  Coverage     52.28%   52.28%             
+ Complexity     7801     3764   -4037     
===========================================
  Files           361      361             
  Lines         43671    43671             
===========================================
  Hits          22834    22834             
  Misses        20837    20837

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9dda0f3...c6cdbb6. Read the comment docs.


<?php endforeach; ?>
<?php else: ?>
<div class="Empty"><?php echo t('No categories were found.'); ?></div>
<?php else:
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems wrong. You are outside of your loop. It seems like you still need that "No categories were found" from above.

@charrondev charrondev merged commit 9fa0613 into master Jan 20, 2020
@charrondev charrondev deleted the fix/mixed-layout branch January 20, 2020 21:28
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.

None yet

3 participants