diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index cd973a7cbc0..7ed61c7c16e 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -119,7 +119,16 @@ class CategoriesController < ApplicationController
end
end
- params.permit(*required_param_keys, :position, :email_in, :email_in_allow_strangers, :parent_category_id, :auto_close_hours, :logo_url, :background_url, :permissions => [*p.try(:keys)])
+ params.permit(*required_param_keys,
+ :position,
+ :email_in,
+ :email_in_allow_strangers,
+ :parent_category_id,
+ :auto_close_hours,
+ :logo_url,
+ :background_url,
+ :allow_badges,
+ :permissions => [*p.try(:keys)])
end
end
diff --git a/app/models/site.rb b/app/models/site.rb
index c9516f7ffa2..752f5124f37 100644
--- a/app/models/site.rb
+++ b/app/models/site.rb
@@ -30,7 +30,7 @@ class Site
end
def group_names
- @group_name ||= Group.pluck(:name)
+ @group_name ||= Group.order(:name).pluck(:name)
end
def categories
diff --git a/app/serializers/category_serializer.rb b/app/serializers/category_serializer.rb
index 4ed3e552a70..b270aec94a7 100644
--- a/app/serializers/category_serializer.rb
+++ b/app/serializers/category_serializer.rb
@@ -7,7 +7,8 @@ class CategorySerializer < BasicCategorySerializer
:position,
:email_in,
:email_in_allow_strangers,
- :can_delete
+ :can_delete,
+ :allow_badges
def group_permissions
@group_permissions ||= begin
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 7cf00fd293b..52681f04e58 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1185,6 +1185,7 @@ en:
auto_close_units: "hours"
email_in: "Custom incoming email address:"
email_in_allow_strangers: "Accept emails from anonymous users with no accounts"
+ allow_badges_label: "Allow badges"
edit_permissions: "Edit Permissions"
add_permission: "Add Permission"
this_year: "this year"