A platform for community discussion. Free, open, simple.
DEV: Use blank instead of NOT present
Blake Erickson79ec686ec94a
diff --git a/app/services/user_updater.rb b/app/services/user_updater.rbindex d4a3a286000..30d6d46e915 100644--- a/app/services/user_updater.rb+++ b/app/services/user_updater.rb@@ -90,7 +90,7 @@ class UserUpdateruser.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 = nilend