Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/Plugins/User/Searchs/SearchsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,16 @@ private function fetchSearchablePageIds($request, $searchs_frame)
continue;
}

// ページの選択「ページ管理のメニュー表示条件に従う」
if ($searchs_frame->page_select == SearchsPageSelect::menu_visible_only) {
// 親子関係をループ(自分 ➔ 親 ➔ ルート)して、base_display_flag が 0 の場合は見れないページとして除外する
foreach ($page_tree as $ancestor_page) {
if (!$ancestor_page->base_display_flag) {
continue 2;
}
}
}

// 見れるページ
$visible_page_ids[] = $page->id;
}
Expand Down
Loading