mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-01 08:00:47 +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;
|
||||
}
|
||||
|
||||
if (empty($bean->$name)) {
|
||||
if (!isset($bean->$name)) {
|
||||
$container[$newName] = '';
|
||||
|
||||
return;
|
||||
|
|
|
@ -247,6 +247,14 @@ $viewdefs ['Contacts'] =
|
|||
'acl' => ['view'],
|
||||
'availability' => ['portal-enabled'],
|
||||
'displayLogic' => [
|
||||
'onPortalEnabled' => [
|
||||
'modes' => ['detail', 'edit', 'create'],
|
||||
'params' => [
|
||||
'activeOnFields' => [
|
||||
'portal_account_disabled' => ['false'],
|
||||
]
|
||||
]
|
||||
],
|
||||
'onJoomlaIDEmpty' => [
|
||||
'modes' => ['detail', 'edit', 'create'],
|
||||
'params' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue