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

Unable to remove a report from the navigation menu

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 3.4.5
    • Component/s: CiviReport
    • Labels:
      None

      Description

      While adding a report to the navigation menu (edit the report and check the box) works fine.
      Removing a already added report raises the following warning and doesn't work (still in the menu) :

      """
      Notice : Undefined index: label dans CRM_Core_BAO_Navigation::add() (ligne 110 dans /var/www/drupal/sites/all/modules/civicrm/CRM/Core/BAO/Navigation.php).
      Notice : Undefined index: permission dans CRM_Core_BAO_Navigation::add() (ligne 116 dans /var/www/drupal/sites/all/modules/civicrm/CRM/Core/BAO/Navigation.php).
      """
      1- There is no way to remove an item from the navigation bar, it's only possible to disable it.
      2- The 'add(' method used for both adding and updating an element is called with a void parameter which causes the raised warning

      The attached patch, affects the CRM/Report/Form/Instance.php file.
      What it does, on disabling:

      • provide the needed value to avoid the warning
      • set the navigation_id param to NULL in the CRM_Report_DAO_Instance

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              tonthon tonthon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified