Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12160

Upgrading to 4.3 with more than one domain makes invalid menu entries

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Numerous instances of this

      CRM-10621 Add component report links to reports menu for upgrade
      SELECT @reportlastID := MAX(id) FROM civicrm_navigation where name = 'Reports';

      Which should be

      CRM-10621 Add component report links to reports menu for upgrade
      SELECT @reportlastID := MAX(id) FROM civicrm_navigation where name = 'Reports' AND domain_id = @domainID;

      This precedes

      INSERT INTO civicrm_navigation
      ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
      VALUES
      ( {$domainID}, 'civicrm/report/list&compid=99&reset=1', '

      {ts escape="sql" skip="true"}

      Contact Reports

      {/ts}

      ', 'Contact Reports', 'administer CiviCRM', '', @reportlastID, '1', 0, (SELECT @max_weight := @max_weight+1) );

      These new navigation entries don't get added to the menu as the parent domain differs from the child domain

      (a separate related issue which has been previously been logged is that the new entries are only created for the primary domain)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: