Fix FiveFortyNine is_public to default to 0
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 13 Apr 2022 23:50:53 +0000 (11:50 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 13 Apr 2022 23:50:53 +0000 (11:50 +1200)
CRM/Core/DAO/Menu.php
CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php
xml/schema/Core/Menu.xml

index e8cc323017b21cb71354babcd2e17f65a5e36d2b..40b8c76e762f5d0a32c96e4cc0cf50e00bb0ec34 100644 (file)
@@ -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',
index d2594f20592098faed30d7e477bc9a70136a653f..504fc370ac3ad6cbe9049951ead0c5627d69ba5b 100644 (file)
@@ -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'",
index 8b734010d7d2ff7b9540c0a9908a580aa3825ed1..0786d67dbb6713f400a11e9388bbd7f9e891683d 100644 (file)
     <name>is_public</name>
     <title>Public?</title>
     <type>boolean</type>
-    <default>1</default>
+    <default>0</default>
     <required>true</required>
     <comment>Is this menu accessible to the public?</comment>
     <add>2.1</add>