mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Update templating and conditional groups to add contact_metas
This commit is contained in:
parent
6062446027
commit
8d86f576d8
4 changed files with 22 additions and 3 deletions
|
@ -335,7 +335,15 @@ namespace controllers\internals;
|
|||
if ((int) ($users_settings[$scheduled['id_user']]['templating'] ?? false))
|
||||
{
|
||||
$contact['datas'] = json_decode($contact['datas'], true);
|
||||
$datas = ['contact' => $contact['datas']];
|
||||
|
||||
//Add metas of contact by adding contact without datas
|
||||
$metas = $contact;
|
||||
unset($metas['datas']);
|
||||
unset($metas['id_user']);
|
||||
|
||||
$datas = ['contact' => $contact['datas'], 'contact_metas' => $metas];
|
||||
|
||||
|
||||
$render = $internal_templating->render($scheduled['text'], $datas);
|
||||
|
||||
if (!$render['success'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue