<?php

$sql_query = 'UPDATE ' . $config['table_prefix'] . 'calc_template SET ';
$sql_query .= <<<'EOT'
params = '{
    "title": "Сохранение пользователя, который изменил поле",
    "help": "tpl_save_user_changed_field",
    "parameters": {
        "value": {
            "type": "Field",
            "name": "value",
            "type_field": 7,
            "description": "Поле-получатель",
            "no_system": true,
            "help": "tpl_to_field"
        }
    },
    "events": [
        {
            "type": 3,
            "field": "-1"
        }
    ]
}' WHERE id = 20
EOT;
run_query($sql_query);