clear-code / redmine_full_text_search

Full text search for Redmine
MIT License
61 stars 24 forks source link

Fixes a problem to show results on other projects with searching custom fields #60

Closed two-pack closed 5 years ago

two-pack commented 5 years ago

When I search a text on custom fields in specified project, a result has other project issues. I fix and request patch.

How to reproduce

  1. Create 2 projects. ex. Project A and Project B.
  2. Create a custom field for issue. ex. cf1 which are text type field and searchable.
  3. Create issues each projects. The issues have same values in custom fields.
    ex. Project A cf1's value is cf1 Project A Project B cf1's value is cf1 Project B
  4. Select Project A and search cf1. Expectation is showing result only Project A's issue, but you also see Project B's issue.

In Japanese, プロジェクトを選択した状態で検索を行った際、カスタムフィールドに該当文字列があると、別のプロジェクトの結果まで表示されています。 パッチを書きましたので、よろしくお願いします。

kou commented 5 years ago

TODO: We need to update implementation for PostgreSQL.