Compare commits
1 commit
master
...
136-create
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
143cb005ff |
2 changed files with 6 additions and 0 deletions
|
|
@ -762,6 +762,8 @@ class TicketController extends Controller
|
||||||
$description = \sprintf("%s<br>", $ticket->text);
|
$description = \sprintf("%s<br>", $ticket->text);
|
||||||
$cLabel = match ($ticket->type) {
|
$cLabel = match ($ticket->type) {
|
||||||
TicketTypeEnum::bug => 'c-bug,g-to-dispatch',
|
TicketTypeEnum::bug => 'c-bug,g-to-dispatch',
|
||||||
|
TicketTypeEnum::complaints,
|
||||||
|
TicketTypeEnum::br => 'g-to-dispatch',
|
||||||
TicketTypeEnum::evolution,
|
TicketTypeEnum::evolution,
|
||||||
TicketTypeEnum::mailing => 'c-feature',
|
TicketTypeEnum::mailing => 'c-feature',
|
||||||
TicketTypeEnum::newsletter => 'c-feature,g-to-estimate',
|
TicketTypeEnum::newsletter => 'c-feature,g-to-estimate',
|
||||||
|
|
@ -771,6 +773,8 @@ class TicketController extends Controller
|
||||||
TicketTypeEnum::bug => $userGitlabId,
|
TicketTypeEnum::bug => $userGitlabId,
|
||||||
TicketTypeEnum::evolution,
|
TicketTypeEnum::evolution,
|
||||||
TicketTypeEnum::mailing,
|
TicketTypeEnum::mailing,
|
||||||
|
TicketTypeEnum::complaints,
|
||||||
|
TicketTypeEnum::br,
|
||||||
TicketTypeEnum::newsletter => $ticket->site->projectManager?->gitlab_id
|
TicketTypeEnum::newsletter => $ticket->site->projectManager?->gitlab_id
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,8 @@ class TicketPolicy
|
||||||
|| $ticket->type->equals(TicketTypeEnum::evolution)
|
|| $ticket->type->equals(TicketTypeEnum::evolution)
|
||||||
|| $ticket->type->equals(TicketTypeEnum::newsletter)
|
|| $ticket->type->equals(TicketTypeEnum::newsletter)
|
||||||
|| $ticket->type->equals(TicketTypeEnum::mailing)
|
|| $ticket->type->equals(TicketTypeEnum::mailing)
|
||||||
|
|| $ticket->type->equals(TicketTypeEnum::complaints)
|
||||||
|
|| $ticket->type->equals(TicketTypeEnum::br)
|
||||||
)
|
)
|
||||||
&& !\is_null($ticket->site->gitlab_project_id)
|
&& !\is_null($ticket->site->gitlab_project_id)
|
||||||
&& \is_null($ticket->gitlab_issue);
|
&& \is_null($ticket->gitlab_issue);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue