From 9a1feb65cc1e947e16dc29308fbc02a1deee56f5 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Sat, 16 Jul 2016 09:41:55 +0100 Subject: Fixed labels & milestones loading the wrong path --- app/views/shared/issuable/_label_dropdown.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/shared/issuable/_label_dropdown.html.haml') 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 -- cgit v1.2.1