dev/core#4190 Fix issue where defaultValues needs to be an array not boolean
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Mar 2023 21:34:02 +0000 (08:34 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Mar 2023 21:34:02 +0000 (08:34 +1100)
CRM/Case/Form/Case.php

index ec036cebc441de6ee2a4ff74a0fbd1406de5adc3..76800a435858fd1dfcadb0e4fd72819b39cb85e9 100644 (file)
@@ -200,7 +200,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
    */
   public function setDefaultValues() {
     if ($this->_action & CRM_Core_Action::DELETE || $this->_action & CRM_Core_Action::RENEW) {
-      return TRUE;
+      return [];
     }
     $className = "CRM_Case_Form_Activity_{$this->_activityTypeFile}";
     $defaults = $className::setDefaultValues($this);