diff --git a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php index 282e5315a8..446796a62d 100644 --- a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php +++ b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php @@ -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);