From 8c904f47995c2e8bfa68bc0a8ebed3fbbaf3aeb5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 Mar 2013 21:20:42 -0700 Subject: [PATCH] Fix constant during 4.1 upgrade --- CRM/Upgrade/Incremental/php/FourOne.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', ), ); -- 2.25.1