<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2020
* $Id$
*
*/
// need to append the array with the " checked " if contact is tagged with the tag
foreach ($allTags as $tagID => $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);
* @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,