diff --git a/app/src/Model/Table/AdHocAttributesTable.php b/app/src/Model/Table/AdHocAttributesTable.php index d88a58254..e1092e6b9 100644 --- a/app/src/Model/Table/AdHocAttributesTable.php +++ b/app/src/Model/Table/AdHocAttributesTable.php @@ -33,17 +33,17 @@ use Cake\Validation\Validator; class AdHocAttributesTable extends Table { + use \App\Lib\Traits\AutoViewVarsTrait; use \App\Lib\Traits\ChangelogBehaviorTrait; use \App\Lib\Traits\CoLinkTrait; use \App\Lib\Traits\HistoryTrait; use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; - use \App\Lib\Traits\QueryModificationTrait; - use \App\Lib\Traits\AutoViewVarsTrait; /** * Provide the default layout @@ -88,7 +88,7 @@ public function initialize(array $config): void { $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); - $this->setEditContains(['ExternalIdentities', 'ExtIdentitySourceRecords']); + $this->setEditContains(['ExternalIdentities', 'ExternalIdentityRoles', 'SourceAdHocAttributes']); $this->setPermissions([ // Actions that operate over an entity (ie: require an $id) diff --git a/app/src/Model/Table/AddressesTable.php b/app/src/Model/Table/AddressesTable.php index d1be7bd73..f1fc87173 100644 --- a/app/src/Model/Table/AddressesTable.php +++ b/app/src/Model/Table/AddressesTable.php @@ -42,6 +42,7 @@ class AddressesTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; @@ -104,6 +105,7 @@ public function initialize(array $config): void { $this->setAcceptsCoId(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); + $this->setEditContains(['ExternalIdentities', 'ExternalIdentityRoles', 'SourceAddresses']); $this->setAutoViewVars([ 'languages' => [ diff --git a/app/src/Model/Table/EmailAddressesTable.php b/app/src/Model/Table/EmailAddressesTable.php index c4b449fe1..baa6c77af 100644 --- a/app/src/Model/Table/EmailAddressesTable.php +++ b/app/src/Model/Table/EmailAddressesTable.php @@ -47,11 +47,11 @@ class EmailAddressesTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; - use \App\Lib\Traits\QueryModificationTrait; // Default "out of the box" types for this model. Entries here should be // given a default localization in app/resources/locales/*/defaultType.po @@ -110,7 +110,7 @@ public function initialize(array $config): void { $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['forceVerify', 'unfreeze']); - $this->setEditContains(['ExternalIdentities', 'ExtIdentitySourceRecords']); + $this->setEditContains(['ExternalIdentities', 'SourceEmailAddresses']); $this->setAutoViewVars([ 'types' => [ diff --git a/app/src/Model/Table/IdentifiersTable.php b/app/src/Model/Table/IdentifiersTable.php index 1a3aa6576..8d2f45978 100644 --- a/app/src/Model/Table/IdentifiersTable.php +++ b/app/src/Model/Table/IdentifiersTable.php @@ -48,7 +48,6 @@ class IdentifiersTable extends Table { use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; use \App\Lib\Traits\SearchFilterTrait; - use \App\Lib\Traits\QueryModificationTrait; // Default "out of the box" types for this model. Entries here should be // given a default localization in app/resources/locales/*/defaultType.po @@ -119,7 +118,7 @@ public function initialize(array $config): void { $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); - $this->setEditContains(['ExternalIdentities', 'ExtIdentitySourceRecords']); + $this->setEditContains(['ExternalIdentities', 'SourceIdentifiers']); $this->setAutoViewVars([ 'types' => [ diff --git a/app/src/Model/Table/NamesTable.php b/app/src/Model/Table/NamesTable.php index de71825aa..6785ab3dc 100644 --- a/app/src/Model/Table/NamesTable.php +++ b/app/src/Model/Table/NamesTable.php @@ -47,11 +47,11 @@ class NamesTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; - use \App\Lib\Traits\QueryModificationTrait; // Default "out of the box" types for this model. Entries here should be @@ -110,8 +110,7 @@ public function initialize(array $config): void { // Models that AcceptCoId should be explicitly added to StandardApiController::initialize() $this->setAcceptsCoId(true); $this->setRedirectGoal('self'); - $this->setEditContains(['ExternalIdentities', 'ExtIdentitySourceRecords']); - + $this->setEditContains(['ExternalIdentities', 'SourceNames']); $this->setAutoViewVars([ 'languages' => [ diff --git a/app/src/Model/Table/PronounsTable.php b/app/src/Model/Table/PronounsTable.php index 23ba6c4dd..82bb98c6a 100644 --- a/app/src/Model/Table/PronounsTable.php +++ b/app/src/Model/Table/PronounsTable.php @@ -41,10 +41,11 @@ class PronounsTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; // Default "out of the box" types for this model. Entries here should be // given a default localization in app/resources/locales/*/defaultType.po @@ -96,6 +97,7 @@ public function initialize(array $config): void { $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); + $this->setEditContains(['ExternalIdentities', 'SourcePronouns']); $this->setAutoViewVars([ 'languages' => [ diff --git a/app/src/Model/Table/TelephoneNumbersTable.php b/app/src/Model/Table/TelephoneNumbersTable.php index d770ccf05..6f40d7ae6 100644 --- a/app/src/Model/Table/TelephoneNumbersTable.php +++ b/app/src/Model/Table/TelephoneNumbersTable.php @@ -41,11 +41,11 @@ class TelephoneNumbersTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; - use \App\Lib\Traits\QueryModificationTrait; // Default "out of the box" types for this model. Entries here should be // given a default localization in app/resources/locales/*/defaultType.po @@ -105,7 +105,7 @@ public function initialize(array $config): void { $this->setAcceptsCoId(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); - $this->setEditContains(['ExternalIdentities', 'ExtIdentitySourceRecords']); + $this->setEditContains(['ExternalIdentities', 'ExternalIdentityRoles', 'SourceTelephoneNumbers']); $this->setAutoViewVars([ diff --git a/app/src/Model/Table/UrlsTable.php b/app/src/Model/Table/UrlsTable.php index 6ed3d9ca0..eb6e53707 100644 --- a/app/src/Model/Table/UrlsTable.php +++ b/app/src/Model/Table/UrlsTable.php @@ -40,10 +40,11 @@ class UrlsTable extends Table { use \App\Lib\Traits\PermissionsTrait; use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\ProvisionableTrait; + use \App\Lib\Traits\QueryModificationTrait; + use \App\Lib\Traits\SearchFilterTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\TypeTrait; use \App\Lib\Traits\ValidationTrait; - use \App\Lib\Traits\SearchFilterTrait; // Default "out of the box" types for this model. Entries here should be // given a default localization in app/resources/locales/*/defaultType.po @@ -96,6 +97,7 @@ public function initialize(array $config): void { $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setAllowLookupPrimaryLink(['unfreeze']); + $this->setEditContains(['ExternalIdentities', 'ExternalIdentityRoles', 'SourceUrls']); $this->setAutoViewVars([ 'types' => [