From 37511c367aa5861e21fd93d9430816b3766c94f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Thu, 9 Aug 2018 16:46:36 +0200 Subject: [PATCH] Fix load projects in link to epic --- app/coffee/modules/common/lightboxes.coffee | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 8f272502..be3b5f29 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -1132,7 +1132,7 @@ module.directive("tgLbCreateEdit", [ debounceLeading = @.taiga.debounceLeading -RelateToEpicLightboxDirective = ($rootScope, $confirm, lightboxService, tgCurrentUserService +RelateToEpicLightboxDirective = ($rootScope, $confirm, lightboxService, $tgCurrentUserService tgResources, $tgResources, $epicsService, tgAnalytics) -> link = ($scope, $el, $attrs) -> us = null @@ -1147,11 +1147,7 @@ tgResources, $tgResources, $epicsService, tgAnalytics) -> loadProjects = -> if $scope.projects == null - $tgResources.projects.list({ - blocked_code: 'null', - is_epics_activated: true - }).then (data) -> - $scope.projects = data + $scope.projects = $tgCurrentUserService.projects.get("all") filterEpics = (selectedProjectId, filterText) -> tgResources.epics.listInAllProjects(