mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Don't try to transform missing templates, it doesn't end well.
This commit is contained in:
parent
9a2292fc91
commit
d633ce970a
@ -141,8 +141,11 @@ abstract class etemplate_widget_transformer extends etemplate_widget
|
||||
// If the widget has been transformed into a template, we
|
||||
// also need to try and instanciate & parse the template too
|
||||
$transformed_template = etemplate_widget_template::instance($attrs['template']);
|
||||
$this->expand_widget($transformed_template, $expand);
|
||||
$transformed_template->run('beforeSendToClient',array($cname,$expand));
|
||||
if($transformed_template)
|
||||
{
|
||||
$this->expand_widget($transformed_template, $expand);
|
||||
$transformed_template->run('beforeSendToClient',array($cname,$expand));
|
||||
}
|
||||
}
|
||||
default:
|
||||
self::setElementAttribute($form_name, $attr, $val);
|
||||
|
Loading…
Reference in New Issue
Block a user