Skip to content

Commit

Permalink
Add base target _main to list controller tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Oct 17, 2023
1 parent 2e1c59a commit 266139b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion application/controllers/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class ReportsController extends Controller
public function indexAction()
{
$this->createTabs()->activate('reports');
$this->getTabs()->getAttributes()->set('data-base-target', '_main');

if ($this->hasPermission('reporting/reports')) {
$this->addControl(
Expand Down
1 change: 0 additions & 1 deletion application/controllers/TemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function indexAction()

$this->addControl($sortControl);


$tableRows = [];

/** @var Model\Template $template */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ trait ReportsTimeframesAndTemplatesTabs
protected function createTabs()
{
$tabs = $this->getTabs();
$tabs->getAttributes()->set('data-base-target', '_main');

$tabs->add('reports', [
'title' => $this->translate('Show reports'),
Expand Down

0 comments on commit 266139b

Please sign in to comment.