mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +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)
|
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 (!is_array(self::$request->sel_options[$form_name])) self::$request->sel_options[$form_name] = array();
|
||||||
|
|
||||||
if ($this->type)
|
if ($this->type)
|
||||||
{
|
{
|
||||||
$form_name = self::form_name($cname, $this->id);
|
|
||||||
// += to keep further options set by app code
|
// += to keep further options set by app code
|
||||||
$pm_widget = new projectmanager_widget();
|
$pm_widget = new projectmanager_widget();
|
||||||
$cell = $this->attrs + array('type'=>$this->type);
|
$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,
|
$cell,
|
||||||
$this->attrs['readonly'],
|
$this->attrs['readonly'],
|
||||||
$extension,
|
$extension,
|
||||||
@ -56,10 +57,10 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer
|
|||||||
self::$request->sel_options[$form_name] += $cell['sel_options'];
|
self::$request->sel_options[$form_name] += $cell['sel_options'];
|
||||||
|
|
||||||
// if no_lang was modified, forward modification to the client
|
// if no_lang was modified, forward modification to the client
|
||||||
if ($cell['no_lang'] != $this->attr['no_lang'])
|
if ($cell['no_lang'] != $this->attr['no_lang'])
|
||||||
{
|
{
|
||||||
self::setElementAttribute($form_name, 'no_lang', $no_lang);
|
self::setElementAttribute($form_name, 'no_lang', $no_lang);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent::beforeSendToClient($cname);
|
parent::beforeSendToClient($cname);
|
||||||
|
Loading…
Reference in New Issue
Block a user