mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-03-16 22:33:34 +00:00
Fix listview
This commit is contained in:
parent
2f07272d7b
commit
d271e74c07
4 changed files with 13 additions and 17 deletions
modules
|
@ -47,10 +47,9 @@ $listViewDefs[$module_name] = [
|
|||
'default' => true,
|
||||
'link' => true,
|
||||
],
|
||||
'redirect_url' => [
|
||||
'label' => 'LBL_REDIRECT_URL',
|
||||
'grant_type' => [
|
||||
'label' => 'LBL_ALLOWED_GRANT_TYPE',
|
||||
'default' => true,
|
||||
'link' => true,
|
||||
],
|
||||
'is_confidential' => [
|
||||
'label' => 'LBL_IS_CONFIDENTIAL',
|
||||
|
|
|
@ -40,16 +40,13 @@ if (!defined('sugarEntry') || !sugarEntry) {
|
|||
die('Not A Valid Entry Point');
|
||||
}
|
||||
|
||||
$module_name = 'OAuth2Clients';
|
||||
$table_name = 'oauth2clients';
|
||||
|
||||
$popupMeta = [
|
||||
'moduleMain' => $module_name,
|
||||
'moduleMain' => 'OAuth2Clients',
|
||||
'varName' => 'OAUTH2CLIENTS',
|
||||
'orderBy' => 'name',
|
||||
'whereClauses' =>
|
||||
[
|
||||
'name' => $table_name . '.name',
|
||||
'name' => 'oauth2clients.name',
|
||||
],
|
||||
'searchInputs' =>
|
||||
[
|
||||
|
@ -60,8 +57,8 @@ $popupMeta = [
|
|||
'label' => 'LBL_NAME',
|
||||
'default' => true,
|
||||
],
|
||||
'redirect_url' => [
|
||||
'label' => 'LBL_REDIRECT_URL',
|
||||
'grant_type' => [
|
||||
'label' => 'LBL_ALLOWED_GRANT_TYPE',
|
||||
'default' => true,
|
||||
],
|
||||
'is_confidential' => [
|
||||
|
|
|
@ -127,7 +127,7 @@ $dictionary['OAuth2Clients'] = [
|
|||
'api-visible' => false,
|
||||
'inline_edit' => false,
|
||||
],
|
||||
'oauth2tokens' => array(
|
||||
'oauth2tokens' => [
|
||||
'name' => 'oauth2tokens',
|
||||
'vname' => 'LBL_RELATED_OAUTH2TOKENS',
|
||||
'type' => 'link',
|
||||
|
@ -135,11 +135,11 @@ $dictionary['OAuth2Clients'] = [
|
|||
'module' => 'OAuth2Tokens',
|
||||
'bean_name' => 'OAuth2Tokens',
|
||||
'source' => 'non-db',
|
||||
),
|
||||
],
|
||||
],
|
||||
'optimistic_locking' => true,
|
||||
'relationships' => array(
|
||||
'oauth2clients_oauth2tokens' => array(
|
||||
'relationships' => [
|
||||
'oauth2clients_oauth2tokens' => [
|
||||
'rhs_module' => 'OAuth2Tokens',
|
||||
'rhs_table' => 'oauth2tokens',
|
||||
'rhs_key' => 'client',
|
||||
|
@ -147,8 +147,8 @@ $dictionary['OAuth2Clients'] = [
|
|||
'lhs_table' => 'oauth2clients',
|
||||
'lhs_key' => 'id',
|
||||
'relationship_type' => 'one-to-many',
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
];
|
||||
if (!class_exists('VardefManager')) {
|
||||
require_once('include/SugarObjects/VardefManager.php');
|
||||
|
|
|
@ -139,7 +139,7 @@ $dictionary['OAuth2Tokens'] = [
|
|||
'id_name' => 'client',
|
||||
'vname' => 'LBL_CLIENT',
|
||||
'type' => 'relate',
|
||||
'link' => 'client',
|
||||
'link' => 'oauth2clients',
|
||||
'table' => 'oauth2clients',
|
||||
'isnull' => 'true',
|
||||
'module' => 'OAuth2Clients',
|
||||
|
|
Loading…
Reference in a new issue