Skip to content

Commit

Permalink
Add base target _main to list controllers (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored Oct 17, 2023
2 parents 6af246f + 266139b commit 25c4b9b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions 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
5 changes: 5 additions & 0 deletions library/Reporting/Model/Timeframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public function getColumns()
];
}

public function getDefaultSort(): string
{
return 'name';
}

public function createBehaviors(Behaviors $behaviors)
{
$behaviors->add(new MillisecondTimestamp([
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 25c4b9b

Please sign in to comment.