Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -354,6 +354,22 @@ class _dataLayer extends \IPS\Dispatcher\Controller
|
||||
|
||||
if ( $property['custom'] ?? 0 )
|
||||
{
|
||||
$defaults = [
|
||||
'pii' => false,
|
||||
'value' => null,
|
||||
'page_level' => true,
|
||||
'short' => "",
|
||||
'description' => "",
|
||||
'event_keys' => []
|
||||
];
|
||||
|
||||
foreach ( $defaults as $key => $value )
|
||||
{
|
||||
if ( !array_key_exists( $key, $property ) )
|
||||
{
|
||||
$property[$key] = $value;
|
||||
}
|
||||
}
|
||||
$form->add( new \IPS\Helpers\Form\Text( 'datalayer_property_value', $property['value'], true ) );
|
||||
$form->add( new \IPS\Helpers\Form\YesNo( 'datalayer_property_page_level', $property['page_level'], true ) );
|
||||
$form->add( new \IPS\Helpers\Form\Text( 'datalayer_property_short', $property['short'], false, array( 'maxLength' => 50 ) ) );
|
||||
|
||||
Reference in new issue
Block a user