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

CRM_Core_Form_Search assumes a checkbox. CiviGrant dashboard has none

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.5
    • Fix Version/s: 4.7
    • Component/s: CiviCRM Search
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      CiviGrant Dashbaord (http://test.nyjew.org/civicrm/grant?reset=1) has Notice:
      Notice: Undefined index: checkbox in CRM_Core_Form_Search->addRowSelectors() (line 131 of /home/xxxxx/public_html/test/sites/all/modules/civicrm/CRM/Core/Form/Search.php).

      The search code assumes there is a checkbox but there is not. harmless, but could lead to other issues. Should not assume:
      public function addRowSelectors($rows) {
      $this->addElement('checkbox', 'toggleSelect', NULL, NULL, array('class' => 'select-rows'));
      foreach ($rows as $row)

      { $this->addElement('checkbox', $row['checkbox'], NULL, NULL, array('class' => 'select-row')); }

      }

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              sonicthoughts shawn holt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: