aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2016-11-14 10:55:18 +0100
committerXinhui2016-11-14 10:55:18 +0100
commit32f12d8a3db8cae6cf29c9c85aeb9d899aecf814 (patch)
tree7f05e2ca18001ea4d482026e78a7c62ccb93714d /app
parentf0a63658e609eef1f1e3967ac0729e5543974203 (diff)
downloadchouette-core-32f12d8a3db8cae6cf29c9c85aeb9d899aecf814.tar.bz2
Fix organisation functional_scope not updated
Refs #1941
Diffstat (limited to 'app')
-rw-r--r--app/models/organisation.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb
index 7a5678ef0..4d93b0ba6 100644
--- a/app/models/organisation.rb
+++ b/app/models/organisation.rb
@@ -44,7 +44,8 @@ class Organisation < ActiveRecord::Base
org = Organisation.find_or_initialize_by(code: code)
if scope
org.sso_attributes ||= {}
- org.sso_attributes[:functional_scope] = scope
+ org.sso_attributes['functional_scope'] = scope
+ org.sso_attributes_will_change!
end
org.name = name
org.synced_at = Time.now