Change reception sound + improve format for accessing datas of contact in template

This commit is contained in:
osaajani 2020-05-30 20:21:41 +02:00
parent 87301827bd
commit fdb01ffabc
8 changed files with 18 additions and 4 deletions

View file

@ -335,7 +335,7 @@ namespace controllers\internals;
if ((int) ($users_settings[$scheduled['id_user']]['templating'] ?? false))
{
$contact['datas'] = json_decode($contact['datas'], true);
$datas = ['contact' => $contact];
$datas = ['contact' => $contact['datas']];
$render = $internal_templating->render($scheduled['text'], $datas);
if (!$render['success'])