mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
fix <select type="select-something" was wrongly converted to <et2-selectsomething
This commit is contained in:
parent
d3cfbbe5e6
commit
48b82ef104
@ -204,7 +204,7 @@ function send_template()
|
|||||||
// type attribute need to go in widget type <select type="select-account" --> <et2-select-account
|
// type attribute need to go in widget type <select type="select-account" --> <et2-select-account
|
||||||
if (empty($matches[2]) && isset($attrs['type']))
|
if (empty($matches[2]) && isset($attrs['type']))
|
||||||
{
|
{
|
||||||
list(,$matches[2])= explode('-', $attrs['type']);
|
$matches[2] = preg_replace('/^(select|taglist)/', '', $attrs['type']);
|
||||||
unset($attrs['type']);
|
unset($attrs['type']);
|
||||||
}
|
}
|
||||||
$replace = '<et2-select' . $matches[2] . ' ' . implode(' ', array_map(static function($attr, $val)
|
$replace = '<et2-select' . $matches[2] . ' ' . implode(' ', array_map(static function($attr, $val)
|
||||||
|
Loading…
Reference in New Issue
Block a user