mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
[Legacy] Fix hide logic of portal buttons
This commit is contained in:
parent
93a8f9f03a
commit
4de09d2ede
2 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,7 @@ class BooleanMapper implements TypeMapperInterface
|
||||||
$newName = $alternativeName;
|
$newName = $alternativeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($bean->$name)) {
|
if (!isset($bean->$name)) {
|
||||||
$container[$newName] = '';
|
$container[$newName] = '';
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -247,6 +247,14 @@ $viewdefs ['Contacts'] =
|
||||||
'acl' => ['view'],
|
'acl' => ['view'],
|
||||||
'availability' => ['portal-enabled'],
|
'availability' => ['portal-enabled'],
|
||||||
'displayLogic' => [
|
'displayLogic' => [
|
||||||
|
'onPortalEnabled' => [
|
||||||
|
'modes' => ['detail', 'edit', 'create'],
|
||||||
|
'params' => [
|
||||||
|
'activeOnFields' => [
|
||||||
|
'portal_account_disabled' => ['false'],
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
'onJoomlaIDEmpty' => [
|
'onJoomlaIDEmpty' => [
|
||||||
'modes' => ['detail', 'edit', 'create'],
|
'modes' => ['detail', 'edit', 'create'],
|
||||||
'params' => [
|
'params' => [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue