From: Coleman Watts Date: Fri, 29 Mar 2013 04:20:42 +0000 (-0700) Subject: Fix constant during 4.1 upgrade X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c904f47995c2e8bfa68bc0a8ebed3fbbaf3aeb5;p=civicrm-core.git Fix constant during 4.1 upgrade --- diff --git a/CRM/Upgrade/Incremental/php/FourOne.php b/CRM/Upgrade/Incremental/php/FourOne.php index 772fb9e9d1..7e00290577 100644 --- a/CRM/Upgrade/Incremental/php/FourOne.php +++ b/CRM/Upgrade/Incremental/php/FourOne.php @@ -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', ), );