configure display of customer, project and activity in dropdown lists (#3151)
This commit is contained in:
@@ -34,6 +34,10 @@ class ActivitiesSubscriber extends AbstractActionsSubscriber
|
||||
$event->addCreate($this->path('admin_activity_create'));
|
||||
}
|
||||
|
||||
if ($this->isGranted('system_configuration')) {
|
||||
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'activity']), 'class' => 'modal-ajax-form']);
|
||||
}
|
||||
|
||||
$event->addHelp($this->documentationLink('activity.html'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,10 @@ class CustomersSubscriber extends AbstractActionsSubscriber
|
||||
$event->addCreate($this->path('admin_customer_create'));
|
||||
}
|
||||
|
||||
if ($this->isGranted('system_configuration')) {
|
||||
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'customer']), 'class' => 'modal-ajax-form']);
|
||||
}
|
||||
|
||||
$event->addHelp($this->documentationLink('customer.html'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,10 @@ class ProjectsSubscriber extends AbstractActionsSubscriber
|
||||
$event->addCreate($this->path('admin_project_create'));
|
||||
}
|
||||
|
||||
if ($this->isGranted('system_configuration')) {
|
||||
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'project']), 'class' => 'modal-ajax-form']);
|
||||
}
|
||||
|
||||
$event->addHelp($this->documentationLink('project.html'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user