From 85aa7c76e32cc77b9c90f1e5d0a40f451a5b9c6f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 12 Nov 2013 21:36:59 +0000 Subject: [PATCH] Fix missing prices in projectmanager price list widget --- ...ss.etemplate_widget_projectmanager.inc.php | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php index ebc7e29a7a..44b114b581 100644 --- a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php +++ b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php @@ -46,21 +46,22 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer if ($this->type) { $pm_widget = new projectmanager_widget(); - if($this->is_readonly($cname, $form_name)) - { - // Go direct to get full erole list - $eroles = new projectmanager_eroles_bo(); - foreach((array)$eroles->search(array(),false,'role_title ASC','','',false,'AND',false,array('pm_id'=>array(0,$eroles->pm_id))) as $erole) - { - self::$request->sel_options[$form_name][$erole['role_id']] = array( - 'label' => $erole['role_description'], - 'title' => lang('Element role title').': '.$erole['role_title'].$eroles->get_info($erole['role_id']), - ); - } - } + if($this->is_readonly($cname, $form_name)) + { + // Go direct to get full erole list + $eroles = new projectmanager_eroles_bo(); + foreach((array)$eroles->search(array(),false,'role_title ASC','','',false,'AND',false,array('pm_id'=>array(0,$eroles->pm_id))) as $erole) + { + self::$request->sel_options[$form_name][$erole['role_id']] = array( + 'label' => $erole['role_description'], + 'title' => lang('Element role title').': '.$erole['role_title'].$eroles->get_info($erole['role_id']), + ); + } + } $cell = $this->attrs; $cell['type']=$this->type; $cell['readonly'] = false; + $template = self::$request; $pm_widget->pre_process($form_name, self::get_array(self::$request->content, $form_name), $cell, $garbage,