
Originally Posted by
lachmac
Could you post the code snippet of rthe "logic hook" version? I have been trying this out, but unsuccesful, sofar...
Thanks!
My logic_hook
Code:
<?php
require_once('data/SugarBean.php');
require_once('include/utils.php');
class zz_css_casePR {
function zz_css_casePR (&$bean, $event, $arguments)
{
global $timedate;
$date_db = $timedate->to_db_date($bean->target . ' 23:59');
$today=date("Y-m-d");
if( $date_db < $today && $bean->status == 'Open'){
$bean->target = "<font class='overdueTask'>".$bean->target ."</font>";
}
if( $date_db == $today && $bean->status == 'Open'){
$bean->target= "<font class='todaysTask'>".$bean->target."</font>"; #amber
}
}
}
?>
Bookmarks