Skip to content

Commit

Permalink
Additional commit for CO-1766
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Sep 9, 2019
1 parent c724080 commit 3167474
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/Lib/Traits/PrimaryLinkTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,15 @@ public function setPrimaryLink($field) {
$this->primaryLinkTable = \Cake\Utility\Inflector::camelize(\Cake\Utility\Inflector::pluralize($f[1]));
}
}

/**
* Set whether the primary link can be asserted directly.
*
* @since COmanage Match v1.0.0
* @param boolean $allowEmpty true if the primary link can be asserted directly
*/

public function setAllowUnkeyedPrimaryLink(array $actions) {
$this->unkeyedActions = array_merge($this->unkeyedActions, $actions);
}
}
1 change: 1 addition & 0 deletions app/src/Model/Table/AttributeMappingsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function initialize(array $config) {
$this->setDisplayField('query');

$this->setPrimaryLink('attribute_map_id');
$this->setAllowUnkeyedPrimaryLink(['install']);
$this->setRequiresMatchgrid(true);
}

Expand Down

0 comments on commit 3167474

Please sign in to comment.