Skip to content
Snippets Groups Projects
Unverified Commit e5997a19 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix warning an account outside of a report closing all reports for that account (#18387)

* Fix warning an account outside of a report closing all reports for that account

* Make it clear what actions solve other reports

* Revert "Make it clear what actions solve other reports"

This reverts commit ad006de821f72e75480701298d13f0945b509059.
parent a9b64b24
No related branches found
No related tags found
No related merge requests found
......@@ -164,8 +164,8 @@ class Admin::AccountAction
def reports
@reports ||= begin
if type == 'none' && with_report?
[report]
if type == 'none'
with_report? ? [report] : []
else
Report.where(target_account: target_account).unresolved
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment