Fixed the issue of editing triggers for advanced servers. Fixes #6802

This commit is contained in:
Rahul Shirsat
2021-10-16 12:36:25 +05:30
committed by Akshay Joshi
parent 173cb60691
commit 1377244e52
4 changed files with 11 additions and 0 deletions

View File

@@ -185,6 +185,12 @@ def get_sql(conn, **kwargs):
old_data = trigger_definition(old_data)
if 'lanname' in old_data and old_data['lanname'] == 'edbspl':
data['lanname'] = old_data['lanname']
if ('tfunction' in old_data and
old_data['tfunction'] == 'Inline EDB-SPL'):
data['tfunction'] = old_data['tfunction']
sql = render_template(
"/".join([template_path, 'update.sql']),
data=data, o_data=old_data, conn=conn