Skip to content

Commit

Permalink
Fix #10099 - Workflow action create record on CRON set incorrect date…
Browse files Browse the repository at this point in the history
… field values from related entity
  • Loading branch information
re8260 authored and jack7anderson7 committed Oct 15, 2024
1 parent d60afb4 commit 2e8daf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/AOW_Actions/actions/actionCreateRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ public function set_record(SugarBean $record, SugarBean $bean, $params = array()
$date = $params['value'][$key][0];
} else {
$dateToUse = $params['value'][$key][0];
$date = $bean->$dateToUse;
$bean->retrieve($bean->id);
$date = $timedate->fromUser($bean->$dateToUse)->asDB();
}

if ($params['value'][$key][1] !== 'now') {
Expand Down

0 comments on commit 2e8daf1

Please sign in to comment.