Fix related issues count not updating after deleting one of the related issues (#38493).

Patch by Takashi Kato.


git-svn-id: https://svn.redmine.org/redmine/trunk@22395 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-10-29 07:31:01 +00:00
parent c8b201b111
commit 36a7932003
4 changed files with 12 additions and 4 deletions

View File

@@ -316,7 +316,7 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
end
assert_difference 'IssueRelation.count', -1 do
delete(:destroy, :params => {:id => '2'}, :xhr => true)
delete(:destroy, :params => {:id => '2', :issue_id => '2'}, :xhr => true)
assert_response :success
assert_equal 'text/javascript', response.media_type
assert_include 'relation-2', response.body