[Vtigercrm-commits] [Vtiger development] #8275: White screen when converting as a plain user a lead assigned to a group

Vtiger development vtiger-tickets at trac.vtiger.com
Mon Sep 29 06:56:27 GMT 2014


#8275: White screen when converting as a plain user a lead assigned to a group
------------------------+---------------------------------
 Reporter:  orepas      |      Owner:  orestes
     Type:  defect      |     Status:  new
 Priority:  unassigned  |  Milestone:  Unassigned
Component:  vtigercrm   |    Version:  6.1.0
 Severity:  Medium      |   Keywords:  undeclared function
------------------------+---------------------------------
 When a user (not an admin) Converted a Lead to an opportunity that was
 assigned to a group
 and left it as is you get a white screen of death.
 Turning on error reporting you get :Fatal error: Call to undefined
 function get_group_options() in C:\Program
 Files\vtigerCRM610\apache\htdocs\vtigerCRM\include\Webservices\Utils.php
 on line 87:

 So no get_group_options ! I assume it was a function from an earlier
 version.


 A workaround I did is : I went to  apache\htdocs\vtigerCRM\ include\utils\
 CommonUtils . php where a lot of the functions
 are declared and added this chunk of code in line 429:

 function get_group_options() {
     global $log;
     $log->debug("Entering get_group_options() method ...");
     global $adb, $noof_group_rows;
     ;
     $sql = "select groupname,groupid from vtiger_groups";
     $result = $adb->pquery($sql, array());
     $noof_group_rows = $adb->num_rows($result);
     $log->debug("Exiting get_group_options method ...");
     return $result;
 }

 That fixed it.

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8275>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list