Skip to content

Commit 7a7e02a

Browse files
authored
Merge pull request #2 from kporras07/handle-issue-entries
Handle issue time entries.
2 parents 2f1c2d3 + a573d3b commit 7a7e02a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assets/javascripts/redmine-timesheet-filter-autocomplete.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ $(document).ready(function() {
4343
if (value) {
4444
urlParams.set('v[' + filter_id + '][]', value);
4545
}
46+
if (issue_id_value = urlParams.get('issue_id')) {
47+
// Handle if coming from issue time entries.
48+
urlParams.append('f[]', 'issue_id');
49+
urlParams.set('op[issue_id]', '~');
50+
urlParams.append('v[issue_id][]', issue_id_value.substring(1));
51+
urlParams.delete('issue_id');
52+
}
4653
window.location.href = window.location.origin + window.location.pathname + '?' + urlParams.toString();
4754
}
4855
}

0 commit comments

Comments
 (0)