[Vtigercrm-commits] [vtiger development] #5835: sql printing out on workflows page

vtiger development vtiger-tickets at trac.vtiger.com
Fri Apr 17 14:54:47 EDT 2009


#5835: sql printing out on workflows page
------------------------+---------------------------------------------------
 Reporter:  Ed.Taaffe   |       Owner:  developer 
     Type:  defect      |      Status:  new       
 Priority:  unassigned  |   Milestone:  5.1.0     
Component:  vtigercrm   |     Version:  5.1.0-val1
 Keywords:              |  
------------------------+---------------------------------------------------
 I just installed 5,0,1 on my live server having done it successfully on a
 sandbox.
 I am very impressed with it so far.

 When I wne t to the workflows page.  None set up yet.
 Instead of the page I got sql printed out.
 see below.

 It looks as thoughsome function is returning the sql instead of an empty
 list.

 Any suggestions



 query($sql)); $modules = array(); foreach($it as $row){ $modules[] =
 $row->name; } return $modules; } function vtDisplayWorkflowList($adb,
 $request, $requestUrl, $app_strings, $current_language){ global $theme;
 $image_path = "themes/$theme/images/"; $module = new
 VTWorkflowApplication("workflowlist"); $smarty = new vtigerCRM_Smarty();
 $wfs = new VTWorkflowManager($adb); $smarty->assign("moduleNames",
 vtGetModules($adb)); $smarty->assign("returnUrl", $requestUrl);
 $listModule = $request["list_module"]; $smarty->assign("listModule",
 $listModule); if($listModule==null || strtolower($listModule)=="all"){
 $smarty->assign("workflows", $wfs->getWorkflows()); }else{
 $smarty->assign("workflows", $wfs->getWorkflowsForModule($listModule)); }
 $smarty->assign("MOD", return_module_language($current_language,
 'Settings')); $smarty->assign("APP", $app_strings);
 $smarty->assign("THEME", $theme);
 $smarty->assign("IMAGE_PATH",$image_path); $smarty->assign("MODULE_NAME",
 $module->label); $smarty->assign("PAGE_NAME", 'Workflow List');
 $smarty->assign("PAGE_TITLE", 'List available workflows');
 $smarty->assign("module", $module);
 $smarty->display("{$module->name}/ListWorkflows.tpl"); }
 vtDisplayWorkflowList($adb, $_REQUEST, $_SERVER["REQUEST_URI"],
 $app_strings, $current_language); ?>

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5835>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list