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

Error parsing Custom Group from Form due to wrong type

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.3.5
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      See forum:http://forum.civicrm.org/index.php/topic,28493.0.html
      Warning: explode() expects parameter 2 to be string, array given in CRM_Core_BAO_CustomGroup::extractGetParams() (line 1429 of civicrm/CRM/Core/BAO/CustomGroup.php).

      In CRM/Core/BAO/CustomGroup.php, there is function extractGetParams(&$form, $type). Does a call to $value = CRM_Utils_Request::retrieve($fieldName, 'String', $form); which can return an array.
      $value = str_replace("|", ",", $value);
      $mulValues = explode(',', $value);

      explode seems to fail as it expects a string. need to check / process for array i thing...

        Attachments

          Activity

            People

            • Assignee:
              ravish.nair Ravish Nair
              Reporter:
              sonicthoughts shawn holt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: