From 7a2916e4a019df6bc3dbb790b648ba26d0e9ca9f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 6 Nov 2015 14:01:19 -0500 Subject: [PATCH] CRM-13823 - Add menu link --- CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl | 6 ++++++ xml/templates/civicrm_navigation.tpl | 1 + 2 files changed, 7 insertions(+) diff --git a/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl index 3c2a2166b8..8348cb5d3a 100644 --- a/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl @@ -1 +1,7 @@ {* file to handle db changes in 4.7.beta1 during upgrade *} + +SELECT @parent_id := id from `civicrm_navigation` where name = 'Administration Console' AND domain_id = {$domainID}; +INSERT INTO civicrm_navigation +( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) +VALUES +( {$domainID}, 'civicrm/a/#/status', '{ts escape="sql" skip="true"}System Status{/ts}', 'System Status', 'administer CiviCRM', '', @parent_id, '1', NULL, 0 ); \ No newline at end of file diff --git a/xml/templates/civicrm_navigation.tpl b/xml/templates/civicrm_navigation.tpl index d448cb3117..4896c695d2 100644 --- a/xml/templates/civicrm_navigation.tpl +++ b/xml/templates/civicrm_navigation.tpl @@ -294,6 +294,7 @@ SET @adminConsolelastID:=LAST_INSERT_ID(); INSERT INTO civicrm_navigation ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) VALUES + ( @domainID, 'civicrm/a/#/status', '{ts escape="sql" skip="true"}System Status{/ts}', 'System Status', 'administer CiviCRM', '', @adminConsolelastID, '1', NULL, 0 ), ( @domainID, 'civicrm/admin/configtask?reset=1', '{ts escape="sql" skip="true"}Configuration Checklist{/ts}', 'Configuration Checklist', 'administer CiviCRM', '', @adminConsolelastID, '1', NULL, 1 ); INSERT INTO civicrm_navigation -- 2.25.1