X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FForm%2FActivity%2FChangeCaseStatus.php;h=5b9d506865ef6758dae0cc279149d23f876c039a;hb=e547f744f83b36d39a69903326ba168f7bfc578d;hp=d79dff10bfb0d79dbd94c208934bcaeefb35217b;hpb=fa92b4af1c4abf280689cea6445c7a9b99858831;p=civicrm-core.git diff --git a/CRM/Case/Form/Activity/ChangeCaseStatus.php b/CRM/Case/Form/Activity/ChangeCaseStatus.php index d79dff10bf..5b9d506865 100644 --- a/CRM/Case/Form/Activity/ChangeCaseStatus.php +++ b/CRM/Case/Form/Activity/ChangeCaseStatus.php @@ -103,7 +103,8 @@ class CRM_Case_Form_Activity_ChangeCaseStatus { /** * Global validation rules for the form * - * @param array $values posted values of the form + * @param array $values + * Posted values of the form. * * @param $files * @param CRM_Core_Form $form @@ -151,7 +152,8 @@ class CRM_Case_Form_Activity_ChangeCaseStatus { // FIXME: Is there an existing function to close a relationship? $query = 'UPDATE civicrm_relationship SET end_date=%2 WHERE id=%1'; foreach ($rels as $relId => $relData) { - $relParams = array(1 => array($relId, 'Integer'), + $relParams = array( + 1 => array($relId, 'Integer'), 2 => array($params['end_date'], 'Timestamp'), ); CRM_Core_DAO::executeQuery($query, $relParams);