From af2993dc755967afa7734ad5646ae8c3302a5f79 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 11 Dec 2013 12:17:01 +0000 Subject: Gigaset C610 added --- app/controllers/config_gigaset_controller.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/config_gigaset_controller.rb b/app/controllers/config_gigaset_controller.rb index c130039..b638db1 100644 --- a/app/controllers/config_gigaset_controller.rb +++ b/app/controllers/config_gigaset_controller.rb @@ -484,9 +484,13 @@ class ConfigGigasetController < ApplicationController return nil end - phone_model = 'Gigaset C610 IP' - if build_variant == 42 && provisioning_id == 2 - phone_model = 'Gigaset N510 IP PRO' + phone_model = 'Gigaset' + if build_variant == 42 + if provisioning_id == 1 + phone_model = 'Gigaset C610 IP' + elsif provisioning_id == 2 + phone_model = 'Gigaset N510 IP PRO' + end end tenant = Tenant.where(:id => GsParameter.get('PROVISIONING_AUTO_TENANT_ID')).first -- cgit v1.2.3