プロジェクト

全般

プロフィール

Vote #63153

完了

filtering issue problem

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2008/05/02
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
3
issue_org_id:
1165
author_id:
965
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hello.
Im using redmine 0.7, which was migrated from a previous 0.5.0 version.
When I go to Issues and filter by "Status => All", it gives an internal error.
Looking at mongrel logs, I can see the generated SQL:

SELECT count(DISTINCT issues.id) AS count_all FROM issues LEFT OUTER JOIN issue_statuses ON issue_statuses.id = issues.status_id LEFT OUTER JOIN projects ON projects.id = issues.project_id WHERE (issues.project_id = 17 AND (issues.status_id IS NOT NULL AND issues.status_id <> ''))

Since status_id is an integer, I think the expression is not ok at the end.
In that case, it should maybe even not be there.

Maybe it has to do with this line in the Redmine code?

@issue_count = Issue.count(:include => [:status, :project], :conditions => @query.statement)

Im using a posgresql 8.2.4 backend on a Centos 5 (RHAS5)


journals

The machine is using the postgres updated gem.

<pre>
-bash-3.1$ gem list | grep pos
postgres (0.7.9.2008.01.28, 0.7.1)
</pre>

--------------------------------------------------------------------------------
This problem was fixed in r1379 and will be fixed in 0.7.1 that should be released tomorrow.
--------------------------------------------------------------------------------
Fixed in 0.7.1 release.
--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン0.7.1_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0