Ver código fonte

[Backend] Ticket : possibilité d'ajouter un ticket en mode out of section

packProduct
Guillaume 2 anos atrás
pai
commit
4878b188e7
1 arquivos alterados com 1 adições e 6 exclusões
  1. +1
    -6
      Controller/Ticket/TicketAdminController.php

+ 1
- 6
Controller/Ticket/TicketAdminController.php Ver arquivo

@@ -32,12 +32,7 @@ abstract class TicketAdminController extends SovTicketAdminController
public function configureActions(Actions $actions): Actions
{
$actions = parent::configureActions($actions);

if(!$this->getSectionCurrent()) {
$actions->disable(ActionDefinition::NEW, ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);
}else{
$actions->disable( ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);
}
$actions->disable( ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);

return $actions;
}

Carregando…
Cancelar
Salvar