diff --git a/share/templates/administrator/list.tt b/share/templates/administrator/list.tt index e5582121e2..cda90b1306 100644 --- a/share/templates/administrator/list.tt +++ b/share/templates/administrator/list.tt @@ -1,6 +1,7 @@ [% site_config.title = c.loc('Administrators') -%] [% helper.name = c.loc('Administrator'); + helper.identifier = 'administrator'; helper.show_create_button = 1; helper.data = admins; helper.messages = messages; diff --git a/share/templates/billing/fees.tt b/share/templates/billing/fees.tt index 42e30ea48f..00323592a8 100644 --- a/share/templates/billing/fees.tt +++ b/share/templates/billing/fees.tt @@ -2,6 +2,7 @@ [% helper.name = c.loc('Billing Fee'); + helper.identifier = 'billing_fee'; helper.messages = messages; helper.dt_columns = fee_dt_columns; helper.length_change = 1; diff --git a/share/templates/billing/list.tt b/share/templates/billing/list.tt index 3ed6889d79..59b49f7dbe 100644 --- a/share/templates/billing/list.tt +++ b/share/templates/billing/list.tt @@ -1,6 +1,7 @@ [% site_config.title = c.loc('Billing Profiles') -%] [% helper.name = c.loc('Billing Profile'); + helper.identifier = 'billing_profile'; helper.messages = messages; helper.dt_columns = profile_dt_columns; helper.length_change = 1; diff --git a/share/templates/billing/peaktimes.tt b/share/templates/billing/peaktimes.tt index 0b54f9a8cd..3c37dc6b2d 100644 --- a/share/templates/billing/peaktimes.tt +++ b/share/templates/billing/peaktimes.tt @@ -54,6 +54,7 @@ [% helper.name = c.loc('Date Definition'); + helper.identifier = 'date_definition'; helper.dt_columns = special_dt_columns; helper.create_flag = peaktimes_special_createflag; diff --git a/share/templates/billing/zones.tt b/share/templates/billing/zones.tt index 31161f4aed..8508d93fd9 100644 --- a/share/templates/billing/zones.tt +++ b/share/templates/billing/zones.tt @@ -1,6 +1,7 @@ [% site_config.title = c.loc('Billing Zones') -%] [% helper.name = c.loc('Billing Zone'); + helper.identifier = 'billing_zone'; helper.messages = messages; helper.dt_columns = zone_dt_columns; helper.length_change = 1; diff --git a/share/templates/contact/list.tt b/share/templates/contact/list.tt index 1844b35e28..744a007025 100644 --- a/share/templates/contact/list.tt +++ b/share/templates/contact/list.tt @@ -1,6 +1,7 @@ [% site_config.title = c.loc('Contacts') -%] [% helper.name = c.loc('Contact'); + helper.identifier = 'contact'; helper.data = contacts; helper.messages = messages; helper.dt_columns = contact_dt_columns; diff --git a/share/templates/helpers/datatables.tt b/share/templates/helpers/datatables.tt index 3bb85eb316..ffcbfd1eaa 100644 --- a/share/templates/helpers/datatables.tt +++ b/share/templates/helpers/datatables.tt @@ -11,7 +11,8 @@ backuri = c.req.uri; tmp = backuri.query_param_delete('back'); # create unique identifier - helper.id_from_name = helper.name.remove('[\s+\.#]'); + helper.id_from_name = helper.identifier || helper.name.remove('[\s+\.#]'); + helper.identifier = 0; # make sure we dont use the same identifier twice -%]