From d5d0525af3113098b479df7bbe3745901299eee4 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Apr 2022 11:50:53 +1200 Subject: [PATCH] Fix FiveFortyNine is_public to default to 0 --- CRM/Core/DAO/Menu.php | 4 ++-- CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php | 2 +- xml/schema/Core/Menu.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index e8cc323017..40b8c76e76 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Menu.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4d01bd1731e617a192799fab24077cac) + * (GenCodeChecksum:190bae10088eb0999743b73f39fc92ca) */ /** @@ -484,7 +484,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'description' => ts('Is this menu accessible to the public?'), 'required' => TRUE, 'where' => 'civicrm_menu.is_public', - 'default' => '1', + 'default' => '0', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', diff --git a/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php b/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php index d2594f2059..504fc370ac 100644 --- a/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php +++ b/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php @@ -59,7 +59,7 @@ return [ ], 'civicrm_menu' => [ 'is_active' => "DEFAULT 1 COMMENT 'Is this menu item active?'", - 'is_public' => "DEFAULT 1 COMMENT 'Is this menu accessible to the public?'", + 'is_public' => "DEFAULT 0 COMMENT 'Is this menu accessible to the public?'", 'is_exposed' => "DEFAULT 1 COMMENT 'Is this menu exposed to the navigation system?'", 'is_ssl' => "DEFAULT 1 COMMENT 'Should this menu be exposed via SSL if enabled?'", 'skipBreadcrumb' => "DEFAULT 0 COMMENT 'skip this url being exposed to breadcrumb'", diff --git a/xml/schema/Core/Menu.xml b/xml/schema/Core/Menu.xml index 8b734010d7..0786d67dbb 100644 --- a/xml/schema/Core/Menu.xml +++ b/xml/schema/Core/Menu.xml @@ -163,7 +163,7 @@ is_public Public? boolean - 1 + 0 true Is this menu accessible to the public? 2.1 -- 2.25.1