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) »
  • addradio() warning on custom search 'Include/Exclude Search'
Pages: [1]

Author Topic: addradio() warning on custom search 'Include/Exclude Search'  (Read 687 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
addradio() warning on custom search 'Include/Exclude Search'
March 22, 2013, 03:00:55 pm
On the Drupal 7 sandbox, I get ...

Warning: array_merge(): Argument #1 is not an array in CRM_Core_Form->addRadio() (line 701 of /var/www/drupal7.civicrm.org/svn/civicrm43/CRM/Core/Form.php).

... on /civicrm/contact/search/custom?csid=4&reset=1

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: addradio() warning on custom search 'Include/Exclude Search'
March 24, 2013, 10:58:25 pm
ken :

This has been fixed. Here's the patch for the same  :

Code: [Select]
--- a/CRM/Contact/Form/Search/Custom/Group.php
+++ b/CRM/Contact/Form/Search/Custom/Group.php
@@ -120,7 +120,7 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo
       '1' => ts('Show contacts that meet the Groups criteria AND the Tags criteria'),
       '0' => ts('Show contacts that meet the Groups criteria OR  the Tags criteria'),
     );
+    $form->addRadio('andOr', ts('AND/OR'), $andOr, NULL, '<br />', TRUE);
-    $form->addRadio('andOr', ts('AND/OR'), $andOr, TRUE, '<br />', TRUE);

     
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • addradio() warning on custom search 'Include/Exclude Search'

This forum was archived on 2017-11-26.