diff options
author | Eugenia Grieff <egrieff@gitlab.com> | 2019-06-28 12:47:54 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-06-28 12:47:54 +0300 |
commit | f0f3246a2b06a4e0edd7d6e309a21aa559118921 (patch) | |
tree | caf81676373d59e93ef2411f6e14c23f1f23a5bd /app/models/concerns/relative_positioning.rb | |
parent | dbd86f00599fb127a9aeaca0a875769d3bd2d83f (diff) |
Do not change updated_at on an issue when reordering on an issue board
Diffstat (limited to 'app/models/concerns/relative_positioning.rb')
-rw-r--r-- | app/models/concerns/relative_positioning.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/relative_positioning.rb b/app/models/concerns/relative_positioning.rb index 46d2c345758..22b6b1d720c 100644 --- a/app/models/concerns/relative_positioning.rb +++ b/app/models/concerns/relative_positioning.rb @@ -25,7 +25,7 @@ module RelativePositioning relative_position = position_between(max_relative_position, MAX_POSITION) object.relative_position = relative_position max_relative_position = relative_position - object.save + object.save(touch: false) end end end @@ -159,7 +159,7 @@ module RelativePositioning def save_positionable_neighbours return unless @positionable_neighbours - status = @positionable_neighbours.all?(&:save) + status = @positionable_neighbours.all? { |issue| issue.save(touch: false) } @positionable_neighbours = nil status |