diff --git a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg index 301b8f176a..d6a28f2e81 100644 --- a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach} diff --git a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg index 73489e7aa4..0c585c1d81 100644 --- a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach} diff --git a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg index 73489e7aa4..0c585c1d81 100644 --- a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg @@ -268,7 +268,7 @@ 0 {foreach $keys as $row} -{if $row.device_key_category == "line"} +{if $row.device_key_type == "6"} {if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $user_id_1}{/if} {if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $user_id_2}{/if} {if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $user_id_3}{/if} @@ -278,7 +278,7 @@ {if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $user_id_7}{/if} {if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $user_id_8}{/if} -{/if}{if $row.device_key_category != "line"} +{/if}{if $row.device_key_type != "6"} {/if} {/foreach}