From 79ec686ec94a81ff8ecf076b8ea247068cb627da Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Sat, 18 Jan 2020 07:30:16 -0700 Subject: [PATCH] DEV: Use blank instead of NOT present Follow up to: 75069ff17917f9b8969ae0e8e0e271cdf1e38c78 --- app/services/user_updater.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/user_updater.rb b/app/services/user_updater.rb index d4a3a286000..30d6d46e915 100644 --- a/app/services/user_updater.rb +++ b/app/services/user_updater.rb @@ -90,7 +90,7 @@ class UserUpdater user.primary_group_id = attributes[:primary_group_id] elsif SiteSetting.user_selected_primary_groups && - !attributes[:primary_group_id].present? + attributes[:primary_group_id].blank? user.primary_group_id = nil end