summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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