Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/class/interactQuery.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ public function executeAndReply($_parameters) {
$cron->setSchedule(cron::convertDateToCron($executeDate));
$cron->save();
$replace['#valeur#'] = date('Y-m-d H:i:s', $executeDate);
$result = scenarioExpression::setTags(str_replace(array_keys($replace), $replace, $reply));
$tmpReply = str_replace(array_keys($replace), $replace, $reply);
$result = scenarioExpression::setTags($tmpReply);
return $result;
}
$replace['#valeur#'] = '';
Expand Down Expand Up @@ -869,7 +870,8 @@ public function executeAndReply($_parameters) {
if (isset($options['tags'])) {
$options['tags'] = arg2array($options['tags']);
foreach ($options['tags'] as $key => $value) {
$tags['#' . trim(trim($key), '#') . '#'] = scenarioExpression::setTags(trim($value));
$tmpValue = trim($value);
$tags['#' . trim(trim($key), '#') . '#'] = scenarioExpression::setTags($tmpValue);
Comment thread
Salvialf marked this conversation as resolved.
Outdated
}
}
$options['tags'] = array_merge($replace, $tags);
Expand Down
Loading