mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
25ccf6fab1
When updating the position of a category, the server correctly updates the position in the database, but the response sent back to the client still contains the old position, causing it to "flip back" in the UI when saving. Only reloading the page will reveal the new, correct value.
The Positionable concern correctly positions the record and updates the database, but we don't assign the new position to the already instantiated model.
This change just assigns self.position after the database update. 😎
|
||
---|---|---|
.. | ||
reports | ||
anon_cache_invalidator.rb | ||
cached_counting.rb | ||
category_hashtag.rb | ||
custom_field.rb | ||
has_custom_fields.rb | ||
has_deprecated_columns.rb | ||
has_destroyed_web_hook.rb | ||
has_sanitizable_fields.rb | ||
has_search_data.rb | ||
has_url.rb | ||
limited_edit.rb | ||
positionable.rb | ||
roleable.rb | ||
searchable.rb | ||
second_factor_manager.rb | ||
stats_cacheable.rb | ||
topic_tracking_state_publishable.rb | ||
trashable.rb |