X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FTag%2FForm%2FTag.php;h=ed75c7017c333f3f5d46d025ac6ac3069ec9a833;hb=f299f7db79fed6f3598c84302966bda087e7cac3;hp=231fb43db0a49d36f794a8d62f39d9bed2be8e90;hpb=831d4f8f151ab9d0aa8960fc7cb8f22905db1149;p=civicrm-core.git diff --git a/CRM/Tag/Form/Tag.php b/CRM/Tag/Form/Tag.php index 231fb43db0..283ee7b03d 100644 --- a/CRM/Tag/Form/Tag.php +++ b/CRM/Tag/Form/Tag.php @@ -1,9 +1,9 @@ $varValue) { if (in_array($tagID, $entityTag)) { - $tagAttribute = array( + $tagAttribute = [ 'checked' => 'checked', 'id' => "tag_{$tagID}", - ); + ]; } else { - $tagAttribute = array( + $tagAttribute = [ 'id' => "tag_{$tagID}", - ); + ]; } $tagChk[$tagID] = $this->createElement('checkbox', $tagID, '', '', $tagAttribute); @@ -113,7 +113,7 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form { * @return void */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Core_DAO_Tag'); + CRM_Utils_System::flushCache(); // array contains the posted values // exportvalues is not used because its give value 1 of the checkbox which were checked by default,