[Vtigercrm-developers] White screen when converting as a plain user a lead assigned to a group
O
orepas at yahoo.gr
Mon Sep 29 12:43:10 GMT 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140929/e7a35f6a/attachment.html>
More information about the vtigercrm-developers
mailing list