1
0
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:
Sylvain 2019-06-05 16:09:11 +02:00
parent 5c57bcc7c6
commit 6f87873b2c
2 changed files with 9 additions and 7 deletions

View File

@ -229,7 +229,7 @@ Application.Controllers.controller('AdminMembersController', ['$scope', '$sce',
searchTimeout = setTimeout(function() {
resetSearchMember();
memberSearch();
}, 500);
}, 300);
};
/**

View File

@ -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