fix filter last_comments - only notes should be used, no issue changes

This commit is contained in:
Alexander Meindl 2023-08-01 14:05:42 +02:00
parent 475e277f37
commit b10c47f3fa

View File

@ -205,6 +205,7 @@ module AdditionalsQuery
" (SELECT MAX(#{journal_table}.id)" \
" FROM #{journal_table}" \
" WHERE #{journal_table}.journalized_type='#{journalized_type}'" \
" AND #{journal_table}.notes IS NOT NULL AND #{journal_table}.notes != ''" \
" GROUP BY #{journal_table}.journalized_id)" \
" AND #{sql_for_field field, operator, value, journal_table, 'created_on'})"
end