-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-7051: Preview button with siteaccess #995
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.
This might be a bit safer, but it's optional.
@@ -340,7 +349,7 @@ private function buildNode( | |||
$children = []; | |||
if ($loadChildren && $depth < $this->getSetting('tree_max_depth')) { | |||
$searchResult = $this->findSubitems($location, $limit, $offset, $sortClause, $sortOrder); | |||
$totalChildrenCount = $searchResult->totalCount; | |||
$totalChildrenCount = (int) $searchResult->totalCount; |
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.
$totalChildrenCount = (int) $searchResult->totalCount; | |
$totalChildrenCount = $searchResult->totalCount === null ? 0 : (int)$searchResult->totalCount; |
450e330
to
f962ad1
Compare
SonarCloud Quality Gate failed.
|
@tischsoic have you evaluated Sonar Cloud bug report? |
I run regressions in: ibexa/headless#31 |
Related PRs:
Checklist:
$ composer fix-cs
)