UPDATE civicrm_country SET name = 'Congo, Republic of the' WHERE name = 'Congo';
-- CRM-10621 Add component report links to reports menu for upgrade
-SELECT @reportlastID := MAX(id) FROM civicrm_navigation where name = 'Reports';
+SELECT @reportlastID := MAX(id) FROM civicrm_navigation where name = 'Reports' AND domain_id = {$domainID};
SELECT @max_weight := MAX(ROUND(weight)) from civicrm_navigation WHERE parent_id = @reportlastID;
INSERT INTO civicrm_navigation
-- CRM-9199
-- Insert menu item at Administer > CiviContribute, below the section break below Premiums (Thank-you Gifts), just below Financial Account.
-SELECT @parent_id := id from `civicrm_navigation` where name = 'CiviContribute';
+SELECT @parent_id := id from `civicrm_navigation` where name = 'CiviContribute' AND domain_id = {$domainID};
SELECT @add_weight_id := weight from `civicrm_navigation` where `name` = 'Financial Types' and `parent_id` = @parent_id;
UPDATE `civicrm_navigation`
( {$domainID}, 'civicrm/admin/financial/financialAccount&reset=1', '{ts escape="sql" skip="true"}Financial Account{/ts}', 'Financial Account', 'access CiviContribute,administer CiviCRM', 'AND', @parent_id, '1', NULL, @add_weight_id + 1 );
-- CRM-10944
-SELECT @contributionlastID := max(id) from civicrm_navigation where name = 'Contributions';
+SELECT @contributionlastID := max(id) from civicrm_navigation where name = 'Contributions' AND domain_id = {$domainID};
SELECT @pledgeWeight := weight from civicrm_navigation where name = 'Pledges' and parent_id = @contributionlastID;
name = 'Closed Batches' OR
name = 'Exported Batches' OR
name = 'Accounting Batches';
-
+
UPDATE `civicrm_navigation`
SET permission = 'create manual batch'
WHERE
name = 'Accounting Batches';
-- CRM-11891
-SELECT @contributionlastID := max(id) from civicrm_navigation where name = 'Contributions';
+SELECT @contributionlastID := max(id) from civicrm_navigation where name = 'Contributions' AND domain_id = {$domainID};
SELECT @importWeight := weight from civicrm_navigation where name = 'Import Contributions' and parent_id = @contributionlastID;
-- since 'Bulk Data Entry' was renamed to 'Batch Data Entry'