FIX: Manually update DirectoryItemSerializer attributes on directory column change (#13503)

This commit is contained in:
Mark VanLandingham 2021-06-23 12:16:00 -05:00 committed by GitHub
parent 5968dc07a5
commit a9175b7705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -30,11 +30,17 @@ class EditDirectoryColumnsController < ApplicationController
end end
end end
update_directory_item_serializer_attributes
render json: success_json render json: success_json
end end
private private
def update_directory_item_serializer_attributes
::DirectoryItemSerializer.attributes(*DirectoryColumn.active_column_names)
end
def ensure_user_fields_have_columns def ensure_user_fields_have_columns
user_fields_without_column = user_fields_without_column =
UserField.left_outer_joins(:directory_column) UserField.left_outer_joins(:directory_column)