summaryrefslogtreecommitdiff
path: root/app/controllers/config_gigaset_controller.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-12-11 12:17:01 +0000
committerPeter Kozak <spag@golwen.net>2013-12-11 12:17:01 +0000
commitaf2993dc755967afa7734ad5646ae8c3302a5f79 (patch)
tree2593ffb5b25d9c65db923fe917df7acce9ac5ebf /app/controllers/config_gigaset_controller.rb
parent763b727197c17f8be7c75b880a5a9949d5fc1704 (diff)
Gigaset C610 added
Diffstat (limited to 'app/controllers/config_gigaset_controller.rb')
-rw-r--r--app/controllers/config_gigaset_controller.rb10
1 files 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