mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +01:00
fix init member group when created from signup modal
This commit is contained in:
parent
5c57bcc7c6
commit
6f87873b2c
@ -229,7 +229,7 @@ Application.Controllers.controller('AdminMembersController', ['$scope', '$sce',
|
||||
searchTimeout = setTimeout(function() {
|
||||
resetSearchMember();
|
||||
memberSearch();
|
||||
}, 500);
|
||||
}, 300);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -373,12 +373,14 @@ class User < ActiveRecord::Base
|
||||
invoicing_profile: ip
|
||||
)
|
||||
end
|
||||
return unless statistic_profile.nil?
|
||||
|
||||
StatisticProfile.create!(
|
||||
user: self,
|
||||
group_id: group_id
|
||||
)
|
||||
if statistic_profile.nil?
|
||||
StatisticProfile.create!(
|
||||
user: self,
|
||||
group_id: group_id
|
||||
)
|
||||
else
|
||||
update_statistic_profile
|
||||
end
|
||||
end
|
||||
|
||||
def update_invoicing_profile
|
||||
|
Loading…
x
Reference in New Issue
Block a user