Update has_separator field in civicrm_navigation
[civicrm-core.git] / CRM / Core / DAO / Navigation.php
index 06c322c4bd79ab58c95309e5d8a4ee324e09fac7..80179999f1c7eead87c148bc4aad3403bbe77b8e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Navigation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3819d9a3e40bfbc36a06809c1f4bd98c)
+ * (GenCodeChecksum:8d6052b04bcd4a7bdfff07ecfa14e60b)
  */
 
 /**
@@ -97,9 +97,9 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
   public $is_active;
 
   /**
-   * If separator needs to be added after this menu item
+   * Place a separator either before or after this menu item.
    *
-   * @var bool
+   * @var int
    */
   public $has_separator;
 
@@ -289,14 +289,18 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
         ],
         'has_separator' => [
           'name' => 'has_separator',
-          'type' => CRM_Utils_Type::T_BOOLEAN,
-          'title' => ts('Use separator'),
-          'description' => ts('If separator needs to be added after this menu item'),
+          'type' => CRM_Utils_Type::T_INT,
+          'title' => ts('Separator'),
+          'description' => ts('Place a separator either before or after this menu item.'),
           'where' => 'civicrm_navigation.has_separator',
+          'default' => '0',
           'table_name' => 'civicrm_navigation',
           'entity' => 'Navigation',
           'bao' => 'CRM_Core_BAO_Navigation',
           'localizable' => 0,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_SelectValues::navigationMenuSeparator',
+          ],
         ],
         'weight' => [
           'name' => 'weight',