CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Menu differences between my upgraded server and the sandbox
Pages: [1]

Author Topic: Menu differences between my upgraded server and the sandbox  (Read 2511 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Menu differences between my upgraded server and the sandbox
March 22, 2013, 04:08:24 pm
I note some differences between the menus on my server upgraded to 4.3.beta3 and the D7 sandbox. For ease of reference, I list the sandbox menu item and then the difference with my site in parentheses. Some of these differences may have been pre-4.3 but the CiviReports and CiviAccounts differences are new. These may represent an upgrade issue for existing users. As far as I know my menus are standard.

. Search > Advanced Search (mine reads 'Find Contacts - Advanced Search')
. Search > Custom Searches (mine reads 'Custom Searches...' and has a mouseover event that shows 4 of the custom searches)
. Contacts > Contact Reports (mine has no entry for this)
. Contributions > Contribution Reports (mine has no entry for this)
. Contributions > Batch Data Entries (mine has no entry for this)
. Contributions > Accounting Batches (mine has no entry for this)
. Events > Event Reports (mine has no entry for this)
. Mailings > Mailing Reports (mine has no entry for this)
. Campaigns (mine has this under the Other menu)
. Campaigns > Campaign Reports (mine has no entry for this)
. Cases (mine has this under the Other menu)
. Cases > Case Reports (mine has no entry for this)
. Reports (mine lists all the individual reports, while the the sandbox has these categorised)
. Administer > System Settings > Manage Extensions (mine is located at Administer > Customize Data and Screens)
. Administer > CiviContribute > Financial Accounts (missing)
. Administer > CiviContribute > Payment Processors (missing)
. Administer > CiviEvent > Payment Processors (missing)
. Administer > CiviReport > All Reports (mine says 'Reports listing')
. Administer > CiviReport > Create New Report from Template (mine says 'Create Reports from Template')
. In addition, the order of menu items and the position separators are sometimes different

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Menu differences between my upgraded server and the sandbox
March 22, 2013, 04:51:49 pm
Contrary to my earlier statement, my navigation menu is non-standard in 2 ways

. I'm using the CiviMobile extension which has a top-level menu item
. I have 2 top-level menu items that I added and disabled

I would still expect that the menus update normally for new functionality.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Menu differences between my upgraded server and the sandbox
March 22, 2013, 05:55:08 pm

The navigation menu is site-modifiable and we could not think of an easy way to merge the changes we were doing with a users change. It is possible but a fair bit of work and we ran out of time / energy / $$$. We've tried to make the new menu a bit more logical and improved from the older version.

That said, i do think we should add the new stuff (specifically the accounting batches and batch data entries). Can you please file an issue for this

With regard to the other stuff, i think a good compromise might be to allow the admin to reload a fresh new navigation menu (and delete any admin manual changes). I suspect this is a 5-10 hour project. If your org or other folks are willing to either do the work and/or fund it that would be great

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Menu differences between my upgraded server and the sandbox
March 22, 2013, 07:21:21 pm
Where would the 'standard' menu structure be stored. Is that in the installation MySQL?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Menu differences between my upgraded server and the sandbox
March 22, 2013, 07:31:56 pm

sql/civicrm_navigation.mysql. U'll need to tweak that script a wee bit to load it into an exisiting site
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Menu differences between my upgraded server and the sandbox
March 22, 2013, 07:36:20 pm
See CRM-12199 and CRM-12200

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Menu differences between my upgraded server and the sandbox
March 26, 2013, 09:03:00 pm
Lobo,

Both these issues appear related to the upgrade SQL not allowing for the site being a multisite setup. Eileen and I have updated the issues with further details.

Ken

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Menu differences between my upgraded server and the sandbox
March 26, 2013, 10:17:59 pm

can you please coordinat with eileen and work / contribute / support her on fixing this

we are depending more on the community to handle extensions like multi-site / multi-lingual etc as we dont have the resources or funding to manage them

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Menu differences between my upgraded server and the sandbox
April 22, 2013, 07:14:02 pm
On http://issues.civicrm.org/jira/browse/CRM-12160

You can see what the patch looks like to fix the first part of the problem

https://github.com/fuzionnz/civicrm/commit/5dbfbb80a7e9dd8a6bdcf44d9aa88cd6fe683eee

We are moving very slowly on upgrading to 4.3 as we are aware that we will have to tackle menus in 4.3 before we can consider upgrading to it.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Menu differences between my upgraded server and the sandbox
April 22, 2013, 07:29:58 pm
BTW - once the domain mis-matches are fixed then we run this in mysql to add missing menu items (seems to mostly work if you don't have any domain mis-matches where the child domain_id doesn't match the parent domain_id)

<pre>
DROP PROCEDURE IF EXISTS buildNavMenuItem;

DELIMITER //
CREATE PROCEDURE buildNavMenuItem(
       IN menulabel VARCHAR(255) CHARACTER SET utf8,
       IN domainID INT,
       IN grandParentID INT )
BEGIN
     DECLARE done TINYINT DEFAULT 0;
     DECLARE submenuLabel varchar(255) CHARACTER SET utf8;
     DECLARE menuID INT;
     DECLARE  cur_menu CURSOR FOR
       SELECT child.label COLLATE 'utf8_unicode_ci', child.id  FROM civicrm_navigation child LEFT JOIN
      civicrm_navigation parent ON child.parent_id = parent.id  AND child.domain_id = parent.domain_id
       WHERE parent.label = menuLabel COLLATE 'utf8_unicode_ci' AND child.domain_id = 1
       AND parent.id = grandParentID
      AND child.id IS NOT NULL;

     DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
   #  SELECT CONCAT(  "SELECT child.label COLLATE 'utf8_unicode_ci', child.id  FROM civicrm_navigation child LEFT JOIN       civicrm_navigation parent ON #child.parent_id = parent.id  AND child.domain_id = parent.domain_id        WHERE parent.label = ", menuLabel, " COLLATE 'utf8_unicode_ci' AND #child.domain_id = 1        AND parent.id = " , grandParentID );
   SELECT id FROM civicrm_navigation WHERE domain_id = domainID AND label = menulabel      COLLATE 'utf8_unicode_ci' LIMIT 1
    INTO @parentID;
      INSERT INTO civicrm_navigation (domain_id, label, name, url, `permission`, permission_operator,    is_active, 
      has_separator, weight, parent_id)

       SELECT domainID as domain_id, n1.label, n1.name, n1.url,n1.`permission`, n1.permission_operator, n1.is_active,
      n1.has_separator, n1.weight, @parentID as parent_id
      FROM civicrm_navigation n2
        RIGHT JOIN (

           SELECT n.* FROM civicrm_navigation n
           INNER JOIN civicrm_navigation p ON p.id = n.parent_id
           WHERE p.name = menulabel COLLATE 'utf8_unicode_ci'
          AND n.domain_id = 1
) as n1 ON n1.label = n2.label AND n2.domain_id = domainID
WHERE n2.id IS NULL;

     OPEN cur_menu;
read_loop: LOOP
            FETCH cur_menu INTO submenuLabel, menuID;
     IF done THEN
      LEAVE read_loop;
     END IF;

     call buildNavMenuItem(submenuLabel COLLATE 'utf8_unicode_ci', domainID, menuID);
  END LOOP;

CLOSE cur_menu;

    END//
   
    DELIMITER ;
   
    DROP PROCEDURE IF EXISTS buildNavigation;

DELIMITER //


CREATE PROCEDURE buildNavigation()
  BEGIN
   DECLARE domainID INT;
   DECLARE menuID INT;
   DECLARE max_domain INT;
   DECLARE max_menu varchar(255) CHARACTER SET utf8;
   DECLARE menuLabel varchar(255) CHARACTER SET utf8;
   DECLARE done TINYINT DEFAULT 0;
   DECLARE  cur_domain CURSOR FOR
     SELECT id FROM civicrm_domain WHERE id <> 1;
   DECLARE  cur_menu CURSOR FOR
     SELECT label COLLATE 'utf8_unicode_ci', id  FROM civicrm_navigation WHERE parent_id IS NULL AND label <> 'Data' AND domain_id = 1;
   DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
   SELECT max(id) FROM civicrm_domain INTO max_domain;
   SELECT max(label) COLLATE 'utf8_unicode_ci' FROM civicrm_navigation WHERE parent_id IS NULL AND label <> 'Data' INTO max_menu;

   SET NAMES 'utf8' COLLATE 'utf8_unicode_ci';
   OPEN cur_domain;
   REPEAT
     FETCH  cur_domain INTO domainID;
     OPEN cur_menu;
     REPEAT
     FETCH cur_menu INTO menuLabel, menuID;
       call buildNavMenuItem(menuLabel COLLATE 'utf8_unicode_ci', domainID, menuID);
       UNTIL done = TRUE   
     END REPEAT;
     CLOSE cur_menu;
     SET done = FALSE;
   UNTIL domainID = max_domain
   END REPEAT;
   CLOSE cur_domain;
  END//
DELIMITER ;

SET max_sp_recursion_depth = 15 ;
call buildNavigation();
</pre>
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Menu differences between my upgraded server and the sandbox

This forum was archived on 2017-11-26.