Skip to content

Commit

Permalink
Incidencia - Flujos de trabajo - Formateo de hora en campos calculado…
Browse files Browse the repository at this point in the history
…s que no usan funciones de fecha. (#113)
  • Loading branch information
PaulaaSTIC authored Feb 22, 2024
1 parent b2ac20a commit 0911aee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/AOW_Actions/actions/actionComputeField.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ private function resolveParameters($bean, $parameters, $parameterTypes)
}
if ($bean->{$parameters[$i]} == null) {
$resolvedParameters[$i] = "";
}
// STIC-Custom 20230212 PCS - Format datetime fields in compute field actions when not using formulas.
// https://github.com/SinergiaTIC/SinergiaCRM/pull/113
if($type == 'datetimecombodatetime'){
global $timedate;
$resolvedParameters[$i] = $timedate->to_display_date_time($bean->{$parameters[$i]});
// END STIC-Custom
} elseif (
(strpos($type, 'char') !== false || strpos($type, 'text') !== false || $type == 'enum') &&
!empty($bean->{$parameters[$i]})
Expand Down

0 comments on commit 0911aee

Please sign in to comment.