From e64a39f9feb89f68af1af57438278ae5d75911af Mon Sep 17 00:00:00 2001 From: A11creATor- Date: Fri, 12 Oct 2018 11:31:02 +0000 Subject: [PATCH 01/31] =?UTF-8?q?refs=20#1353=20#1354=20=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=81=A7=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF?= =?UTF-8?q?=E6=99=82=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=83=9C=E3=82=BF=E3=83=B3?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E9=A0=85=E7=9B=AE?= =?UTF-8?q?=E3=81=8C=E9=96=93=E9=81=95=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B?= =?UTF-8?q?=E3=80=81=E3=83=97=E3=83=AB=E3=83=80=E3=82=A6=E3=83=B3=E3=83=A1?= =?UTF-8?q?=E3=83=8B=E3=83=A5=E3=83=BC=E3=82=92=E9=96=8B=E3=81=8F=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=83=9A=E3=83=BC=E3=82=B8=E5=85=88=E9=A0=AD=E3=81=B8?= =?UTF-8?q?=E7=A7=BB=E5=8B=95=E3=81=99=E3=82=8B=E3=81=93=E3=81=A8=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- View/Elements/Menus/header/list_start.ctp | 4 ++-- View/Helper/MenuFormHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/View/Elements/Menus/header/list_start.ctp b/View/Elements/Menus/header/list_start.ctp index 8b799de..d60b46b 100644 --- a/View/Elements/Menus/header/list_start.ctp +++ b/View/Elements/Menus/header/list_start.ctp @@ -14,13 +14,13 @@ if ($nest === 0) { $linkClick = 'linkClick(\'' . $this->Menu->getLinkDomId('header', $pageId) . '\')'; if ($isActive || $isRootActive) { if ($hasChild) { - $listTagStart = '
  • '; } } else { if ($hasChild) { - $listTagStart = '
  • '; } diff --git a/View/Helper/MenuFormHelper.php b/View/Helper/MenuFormHelper.php index e1b6b89..38d0198 100644 --- a/View/Helper/MenuFormHelper.php +++ b/View/Helper/MenuFormHelper.php @@ -143,7 +143,7 @@ public function checkboxMenuFramesPage($roomId, $room, $pageId, $menu, $rootRoom 'pageId' => $pageId, 'nest' => $nest, //'displayWhenClicking' => $menu['Page']['lft'] + 1 !== (int)$menu['Page']['rght'], - 'displayWhenClicking' => !(bool)$menu['Page']['child_count'], + 'displayWhenClicking' => (bool)$menu['Page']['child_count'], 'domChildPageIds' => $domChildPageIds, 'roomDisabled' => $roomDisabled, 'pageNameCss' => $this->_getPageNameCss($room, $pageId), From a8ca1c2fa704b0a7236b94543042031466ffa4ab Mon Sep 17 00:00:00 2001 From: A11creATor- Date: Fri, 12 Oct 2018 11:56:41 +0000 Subject: [PATCH 02/31] =?UTF-8?q?refs=20#1353=20#1354=20TestCode=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/Case/View/Elements/Menus/header/IndexTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/Case/View/Elements/Menus/header/IndexTest.php b/Test/Case/View/Elements/Menus/header/IndexTest.php index bb91eff..a388fb1 100644 --- a/Test/Case/View/Elements/Menus/header/IndexTest.php +++ b/Test/Case/View/Elements/Menus/header/IndexTest.php @@ -108,7 +108,7 @@ private function __assertLink($frameId, $pageId, $permalink, $active, $name, $ha '<\/li>'; } elseif ($hasDropMark) { $pattern = - '