Closed samgavinio closed 9 years ago
Noted @samgavinio. On the front-end side, all of our delete
functions that were integrated in our cms app, have their own counter/constraint
to prohibit this case from happening. I'll just apply it on the back-end. Thanks for the look on this. :+1:
This whole part will fail if one of the nodes is empty:
Say for example:
$this->map->categoryNavigation->otherCategories
is an empty array (not outside the realm of impossibility). In this caseotherCategories
will not even be declared and hencewith('otherCategories', $otherCategories)
in theView::make
chain will obviously fail. This applies to each of the for loops.The code is very fragile. Even if just one of the
for
loops does not iterate at least once then the whole CMS will no longer work. The fix of course is rather simple, define the variables before hand so you're sure that theView::make
chain will not fail like so: