FIX: Manually update DirectoryItemSerializer attributes on directory column change (#13503)
This commit is contained in:
parent
5968dc07a5
commit
a9175b7705
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue