[Vtigercrm-developers] Announcements feature do not support html tag ?
apcloic
apcloic at gmail.com
Fri Dec 18 08:50:06 GMT 2015
Ok, problem solved by adding a single line of code to
vtlib/Vtiger/Deprecated.php
static function getAnnouncements() {
global $adb;
$sql = " select * from vtiger_announcement inner join vtiger_users on
vtiger_announcement.creatorid=vtiger_users.id";
$sql.=" AND vtiger_users.is_admin='on' AND vtiger_users.status='Active'
AND vtiger_users.deleted = 0";
$result = $adb->pquery($sql, array());
for ($i = 0; $i < $adb->num_rows($result); $i++) {
$announce = getUserFullName($adb->query_result($result, $i, 'creatorid'))
. ' : ' . $adb->query_result($result, $i, 'announcement') . ' ';
// patch to support html tags
$announce = html_entity_decode($announce);
// end
if ($adb->query_result($result, $i, 'announcement') != '')
$announcement.=$announce;
}
return $announcement;
}
Regards,
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Announcements-feature-do-not-support-html-tag-tp18000p18003.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list