Skip to content

Commit

Permalink
Errata
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 22, 2022
1 parent 6e1453c commit 9ccb9cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/src/Controller/DashboardsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function configuration() {

$platformMenuItems = [
__d('controller', 'Cos', [99]) => [
'icon' => 'build', // XXX kind of want house here, but maybe need newer material icons?
'icon' => 'home',
'controller' => 'cos',
'action' => 'index'
]
Expand Down
26 changes: 13 additions & 13 deletions app/src/Lib/Traits/PrimaryLinkTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ trait PrimaryLinkTrait {
private $lookupActions = ['delete', 'edit', 'view'];

// Where to redirect on add or edit, can be 'self', 'index', or 'primaryLink'
private $redirectGoal = ['index'];
private $redirectGoal = 'index';

// Accept the current CO ID?
private $acceptCoId = false;
Expand Down Expand Up @@ -252,6 +252,18 @@ public function setAllowLookupPrimaryLink(array $actions) {
$this->lookupActions = array_merge($this->lookupActions, $actions);
}

/**
* Set which actions permit a primary link to be passed as a request parameter.
* Defaults to [add, index].
*
* @since COmanage Registry v5.0.0
* @param array $actions Array of actions that permit unkeyed primary links.
*/

public function setAllowUnkeyedPrimaryLink(array $actions) {
$this->unkeyedActions = array_merge($this->unkeyedActions, $actions);
}

/**
* Set the current CO ID. Intended for use with AppController.
*
Expand Down Expand Up @@ -280,18 +292,6 @@ public function setPrimaryLink($field) {
}
}

/**
* Set which actions permit a primary link to be passed as a request parameter.
* Defaults to [add, index].
*
* @since COmanage Registry v5.0.0
* @param array $actions Array of actions that permit unkeyed primary links.
*/

public function setAllowUnkeyedPrimaryLink(array $actions) {
$this->unkeyedActions = array_merge($this->unkeyedActions, $actions);
}

/**
* Set the redirect goal for this table.
*
Expand Down
2 changes: 1 addition & 1 deletion app/templates/Dashboards/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$linkContent = '<em class="material-icons" aria-hidden="true">' . $cfg['icon'] . '</em>'
. '<span class="menu-title">' . $label . '</span>';
print $this->Html->link(
$label,
$linkContent,
['plugin' => null,
'controller' => $cfg['controller'],
'action' => $cfg['action']],
Expand Down
2 changes: 1 addition & 1 deletion app/templates/Names/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $indexColumns = [
$indexActions = [
[
'action' => 'primary',
'class' => 'linkbutton',
'icon' => 'publish',
'if' => 'notPrimary'
]
];

0 comments on commit 9ccb9cc

Please sign in to comment.