Skip to content

Commit

Permalink
fix: Transform message text even if no template is selected
Browse files Browse the repository at this point in the history
Closes #493
  • Loading branch information
g-bougard authored and trasher committed May 22, 2024
1 parent 5f75a1e commit 7fa8046
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inc/deploypackage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2226,15 +2226,15 @@ public function buildJson($agent_task_version, $job)
$job['job']['userinteractions'][$key]
= $template->addJsonFieldsToArray($job['job']['userinteractions'][$key]);
unset($job['job']['userinteractions'][$key]['template']);

$job['job']['userinteractions'][$key]['text']
= str_replace(
PluginGlpiinventoryDeployUserinteraction::RN_TRANSFORMATION,
"\r\n",
$job['job']['userinteractions'][$key]['text']
);
}
}

$job['job']['userinteractions'][$key]['text']
= str_replace(
PluginGlpiinventoryDeployUserinteraction::RN_TRANSFORMATION,
"\r\n",
$job['job']['userinteractions'][$key]['text']
);
}
}
return $job;
Expand Down

0 comments on commit 7fa8046

Please sign in to comment.