http://projects.andriylesyuk.com/http://projects.andriylesyuk.com/plugin_assets/andriy_lesyuk/images/s-andy.ico2018-07-19T08:40:54ZProjectsISSUE-id - Omission #2444: Search by new issue-id does not workhttp://projects.andriylesyuk.com/issues/ISSUE-16?journal_id=31492018-07-19T08:40:54Zdaniel wieselwind
<ul></ul><p>Just to clarify, for example with issue ISSUE-5678 and legacy ID 1234, searching for “5678” or “ISSUE-5678” comes up empty.<br />Also, when looking for ISSUE-1234, a search for “1234” will redirect to, for example ISSUE-576 (whose legacy id is 1234).</p>
<p>I cannot link is as duplicate of ISSUE-15 here.</p> ISSUE-id - Omission #2444: Search by new issue-id does not workhttp://projects.andriylesyuk.com/issues/ISSUE-16?journal_id=31502018-07-20T11:21:11ZAndriy Lesyuks-andy@andriylesyuk.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Open</i></li><li><strong>Assignee</strong> set to <i>Andriy Lesyuk</i></li><li><strong>Target version</strong> set to <i>0.0.3</i></li></ul><p>Thanks for reporting the issue.</p> ISSUE-id - Omission #2444: Search by new issue-id does not workhttp://projects.andriylesyuk.com/issues/ISSUE-16?journal_id=31542018-08-09T16:30:24ZJeongyeol choi
<ul></ul><p><a class="user active" href="http://projects.andriylesyuk.com/users/dwieselwind">daniel wieselwind</a> wrote:</p>
<blockquote>
<p>Searching for issues with the new issue ID does not work.</p>
</blockquote>
<p>Thank you for your plug-in. It’s really cool.<br />I feel like a little bit inconvinient with this bug.<br />so, I fixed this issue like following.<br />I’m using redmine 3.4.6 now. I hope this fix will include version 0.3 soon.<br />Have a nice day~!</p>
<p>redmine/app/models/issue.rb<br /><pre><code class="diff syntaxhl"><span class="CodeRay"><span class="line comment">line 44~46:</span>
<span class="line delete"><span class="delete">-</span><span class="eyecatcher">acts_as_searchable :columns => ['subject', "#{table_name}.description"</span>],</span>
<span class="line delete"><span class="delete">-</span> :preload => [:project, :status, :tracker],</span>
<span class="line delete"><span class="delete">-</span> :scope => lambda {|options| options[:open_issues] ? self.open : self.all}</span>
<span class="line insert"><span class="insert">+</span><span class="eyecatcher"> acts_as_searchable :columns => ['subject', "#{table_name}.description", 'concat(project_key, '-', issue_number)'</span>],</span>
<span class="line insert"><span class="insert">+</span> :preload => [:project, :status, :tracker],</span>
<span class="line insert"><span class="insert">+</span> <span class="eyecatcher"> </span>:scope => lambda {|options| options[:open_issues] ? self.open : self.all}</span>
</span></code></pre></p>