diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-16 09:41:55 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-20 10:48:02 +0100 |
commit | 9a1feb65cc1e947e16dc29308fbc02a1deee56f5 (patch) | |
tree | a8596c7037bada0cc2ddc112ea7b099af271fd20 /app/views/shared/issuable/_label_dropdown.html.haml | |
parent | 3582861cbcb3e4c80822408c6c31d0de48720813 (diff) | |
download | gitlab-ce-9a1feb65cc1e947e16dc29308fbc02a1deee56f5.tar.gz |
Fixed labels & milestones loading the wrong path
Diffstat (limited to 'app/views/shared/issuable/_label_dropdown.html.haml')
-rw-r--r-- | app/views/shared/issuable/_label_dropdown.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_label_dropdown.html.haml b/app/views/shared/issuable/_label_dropdown.html.haml index 36a1ac7664e..6518f448253 100644 --- a/app/views/shared/issuable/_label_dropdown.html.haml +++ b/app/views/shared/issuable/_label_dropdown.html.haml @@ -14,7 +14,7 @@ - if selected.present? - if selected.respond_to?('any?') - - selected = project.labels.find_by_id(selected) || selected + - selected = project.labels.where(id: selected) || selected - selected.each do |label| - id = label.try(:id) || label - title = label.try(:title) || label |