Skip to content

Commit

Permalink
wip - Eliminar comentarios
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuSinergiaCRM committed Oct 8, 2024
1 parent 6ae1c4f commit fcbce6b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions custom/modules/Calendar/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,12 @@ public function load_activities()
$item['color'] = $act->sugar_bean->color ? '#'.$act->sugar_bean->color : '';
}
if ($item['module_name'] == 'stic_Work_Calendar') {
// if ($act->sugar_bean->type == 'canceled' ) {
// break;
// } else {
$item['event_type'] = $act->sugar_bean->type;
$totalMinutes = $act->sugar_bean->duration * 60;
$item['duration_hours'] = floor($totalMinutes / 60);
$item['duration_minutes'] = round($totalMinutes - $item['duration_hours'] * 60);
$item['rendering'] = 'background';
// }
$item['event_type'] = $act->sugar_bean->type;
$totalMinutes = $act->sugar_bean->duration * 60;
$item['duration_hours'] = floor($totalMinutes / 60);
$item['duration_minutes'] = round($totalMinutes - $item['duration_hours'] * 60);
$item['rendering'] = 'background';
}
// END STIC-Custom


if (isset($this->activityList[$act->sugar_bean->module_name]['start']) && !empty($this->activityList[$act->sugar_bean->module_name]['start'])) {
Expand Down

0 comments on commit fcbce6b

Please sign in to comment.