From 5579c3d04fbb87daf6ecd17d08a2fa0aaeaace10 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Tue, 7 Apr 2020 19:07:06 +0200 Subject: [PATCH] allow to create default team if none with the project/customer name exists (#1624) --- templates/embeds/teams.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/embeds/teams.html.twig b/templates/embeds/teams.html.twig index e910a2bf..6c8fceb9 100644 --- a/templates/embeds/teams.html.twig +++ b/templates/embeds/teams.html.twig @@ -10,7 +10,7 @@ {% embed '@AdminLTE/Widgets/box-widget.html.twig' with options %} {% import "macros/widgets.html.twig" as widgets %} {% block box_tools %} - {% if teams|length == 0 and team is null and route_create is not null and is_granted('create_team') %} + {% if route_create is not null and (teams|length == 0 or team is null) and is_granted('create_team') %} {% endif %} {% if route_edit is not null %}