From 4d8371d015d786fc5b00a7d197eb63820e020131 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 Nov 2013 21:53:05 +0000 Subject: [PATCH] Fix missing eroles in element list 'Element role' column --- .../inc/class.etemplate_widget_projectmanager.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php index b79501a471..ab5784821f 100644 --- a/etemplate/inc/class.etemplate_widget_projectmanager.inc.php +++ b/etemplate/inc/class.etemplate_widget_projectmanager.inc.php @@ -46,6 +46,16 @@ class etemplate_widget_projectmanager extends etemplate_widget_transformer if ($this->type) { $pm_widget = new projectmanager_widget(); + + // 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,$this->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; // Send not read-only to get full list