Fix constant during 4.1 upgrade
authorColeman Watts <coleman@civicrm.org>
Fri, 29 Mar 2013 04:20:42 +0000 (21:20 -0700)
committerColeman Watts <coleman@civicrm.org>
Fri, 29 Mar 2013 04:20:42 +0000 (21:20 -0700)
CRM/Upgrade/Incremental/php/FourOne.php

index 772fb9e9d1117fef1cc1729e6c96a14457ac93ec..7e0029057766afcabaf29121f6ecce9e07d23f06 100644 (file)
@@ -33,6 +33,9 @@
  *
  */
 class CRM_Upgrade_Incremental_php_FourOne {
+  // This was changed in 4.3 so we define it locally for compatability with older dbs
+  const NAVIGATION_NAME = "Navigation Menu";
+
   function verifyPreDBstate(&$errors) {
     $config = CRM_Core_Config::singleton();
     if (in_array('CiviCase', $config->enableComponents)) {
@@ -123,7 +126,7 @@ class CRM_Upgrade_Incremental_php_FourOne {
 
 
     $userColumnNames = array(
-      CRM_Core_BAO_Setting::NAVIGATION_NAME => array(
+      self::NAVIGATION_NAME => array(
         'navigation',
       ),
     );