mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
WIP allow to place custom-fields in tabs: fix boolean values for cfPrepend attribute
This commit is contained in:
parent
dedaa29204
commit
c8e968ba1e
@ -158,6 +158,10 @@ class Tabbox extends Etemplate\Widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
$prepend = $this->attrs['cfPrepend'] ?? 'history';
|
$prepend = $this->attrs['cfPrepend'] ?? 'history';
|
||||||
|
if (in_array($prepend, ['true', '1', 'false', '0', '']))
|
||||||
|
{
|
||||||
|
$prepend = in_array($prepend, ['true', '1']);
|
||||||
|
}
|
||||||
|
|
||||||
// check if template still contains a legacy customfield tab
|
// check if template still contains a legacy customfield tab
|
||||||
$have_legacy_cf_tab = $this->haveLegacyCfTab();
|
$have_legacy_cf_tab = $this->haveLegacyCfTab();
|
||||||
|
Loading…
Reference in New Issue
Block a user