Commit c4c910d7 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1795189: Handle collections better when making page via tags"

parents 62d11942 cc724200
......@@ -789,6 +789,7 @@ function set_view_title_and_description(Pieform $form, $values) {
JOIN {view_layout_columns} vlc ON = vlrc.columns
WHERE vlrc.viewlayout = ? and vlrc.row = ?", array($values['currentlayoutselect'], 1));
$data = array();
// Get all the items containing any of the tags
foreach ($createtags as $tag) {
......@@ -801,6 +802,10 @@ function set_view_title_and_description(Pieform $form, $values) {
$combineddata = array();
// Now check what we have so we know what to do with them
foreach ($data as $item) {
// If collection but tag is in one of it's views then no $item->tags so skip
if (!isset($item->tags)) {
// Check that the block has all of the tags we entered, and if not skip it
if (array_diff($createtags, $item->tags)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment