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) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • broken administer/customize/navigation menu in 4.1.1
Pages: [1]

Author Topic: broken administer/customize/navigation menu in 4.1.1  (Read 955 times)

pike67

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 0
  • CMS version: drupal7
broken administer/customize/navigation menu in 4.1.1
October 18, 2012, 05:17:38 am
Hi

I just went to administer/customize/navigation menu
and deleted the 'home' item in civicrm 4.1.1 :-D

Because I thought it was sort of useless. I had added
my own links 'drupal' and 'civicrm' there which made more
sense than the 'home' dropdown.

two things went wrong :
 - the menu didnt change
 - administer/customize/navigation is empty and stays empty

trying to fix it, i added an entry 'test' to the menu. it shows up
in the menu, but the custmoize page stays empty, meaning
i cant delete 'test' anymore .. ehrrrr.

does anyone know how to get the customize/navigation page
back working ?

thanks,
*-pike

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: broken administer/customize/navigation menu in 4.1.1
October 18, 2012, 07:10:07 am
Perhaps you could run a fresh install on a spare database and then copy over the civicrm_menu to the broken one.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

pike67

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 0
  • CMS version: drupal7
Re: broken administer/customize/navigation menu in 4.1.1
October 30, 2012, 05:47:45 am
I could, or I could fix the bug in CRM/Admin/Page/Navigation.php, line 107

 
Code: [Select]
        // PIKE HACK - accidently deleted the home item
         // $homeMenuId = CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_Navigation', 'Home', 'id', 'name' );
         $homeMenuId = CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_Navigation', 'CiviCRM', 'id', 'name' );

Seeing that code, I dont think you may even *rename* the home menu item :-)

works again,
*-pike

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • broken administer/customize/navigation menu in 4.1.1

This forum was archived on 2017-11-26.