Permalink
Browse files

Fixed issue with inhering an empty section, not properly clearing out…

… particles in the current one (#2137, part 2)
  • Loading branch information...
mahagr committed Oct 11, 2017
1 parent a085452 commit ed736c6f7f5af5271b30766f9ad2c2e2d52817d6
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/classes/Gantry/Admin/Controller/Html/Configurations/Layout.php
@@ -454,9 +454,7 @@ function () use ($validator) {
} else {
$item = $layout->inheritAll()->find($inherit['section']);
}
if (!empty($item->children)) {
$data->join('children', $item->children);
}
$data->join('children', !empty($item->children) ? $item->children : []);
}
// TODO: validate

0 comments on commit ed736c6

Please sign in to comment.