mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
fixed "PHP Fatal error: Unsupported operand types in /opt/local/apache2/htdocs/egroupware/etemplate/inc/class.etemplate_widget_projectmanager.inc.php on line 56"
This commit is contained in:
parent
14d593d600
commit
19b3120be6
@ -40,14 +40,15 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer
|
||||
*/
|
||||
public function beforeSendToClient($cname)
|
||||
{
|
||||
$form_name = self::form_name($cname, $this->id);
|
||||
if (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
|
||||
|
||||
if ($this->type)
|
||||
{
|
||||
$form_name = self::form_name($cname, $this->id);
|
||||
// += to keep further options set by app code
|
||||
$pm_widget = new projectmanager_widget();
|
||||
$cell = $this->attrs + array('type'=>$this->type);
|
||||
$pm_widget->pre_process($form_name, self::get_array(self::$request->content, $form_name),
|
||||
$pm_widget->pre_process($form_name, self::get_array(self::$request->content, $form_name),
|
||||
$cell,
|
||||
$this->attrs['readonly'],
|
||||
$extension,
|
||||
@ -56,10 +57,10 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer
|
||||
self::$request->sel_options[$form_name] += $cell['sel_options'];
|
||||
|
||||
// if no_lang was modified, forward modification to the client
|
||||
if ($cell['no_lang'] != $this->attr['no_lang'])
|
||||
{
|
||||
self::setElementAttribute($form_name, 'no_lang', $no_lang);
|
||||
}
|
||||
if ($cell['no_lang'] != $this->attr['no_lang'])
|
||||
{
|
||||
self::setElementAttribute($form_name, 'no_lang', $no_lang);
|
||||
}
|
||||
}
|
||||
|
||||
parent::beforeSendToClient($cname);
|
||||
|
Loading…
Reference in New Issue
Block a user