vtiger_search.php modification to add comments and title
Posted: Wed Aug 03, 2011 8:07 am
Quick summary of the problem. Typing any comments in the vicidial agent gui would not transfer to the vtiger CRM, Simply added the Value Comments, similarly title was not posting as well.
Edit vtiger_search.php
With your favorite editor and compar
#Insert values into vtiger_crmentity edited by noah 1-17-2011 added comments and '$comments'
$stmt = "INSERT INTO vtiger_crmentity (crmid, smcreatorid, smownerid, modifiedby, setype, description, createdtime, modifiedtime, viewedtime, status, version, presence, deleted) VALUES ('$leadid', '$user_id', '$user_id','$user_id', 'Leads', '$comments', '$NOW_TIME', '$NOW_TIME', '$NOW_TIME', NULL, '0', '1', '0');";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $linkV);
if ($DB) {echo "|$leadid|\n";}
if (!$rslt) {die('Could not execute: ' . mysql_error());}
#Insert values into vtiger_leaddetails edited by noah 1-17-2011 added comments and '$comments' and title to designation
$stmt = "INSERT INTO vtiger_leaddetails (leadid,salutation,firstname,lastname,company,comments) values('$leadid','$title','$first_name','$last_name','$first_name $last_name','$comments');";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $linkV);
if (!$rslt) {die('Could not execute: ' . mysql_error());}
Edit vtiger_search.php
With your favorite editor and compar
#Insert values into vtiger_crmentity edited by noah 1-17-2011 added comments and '$comments'
$stmt = "INSERT INTO vtiger_crmentity (crmid, smcreatorid, smownerid, modifiedby, setype, description, createdtime, modifiedtime, viewedtime, status, version, presence, deleted) VALUES ('$leadid', '$user_id', '$user_id','$user_id', 'Leads', '$comments', '$NOW_TIME', '$NOW_TIME', '$NOW_TIME', NULL, '0', '1', '0');";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $linkV);
if ($DB) {echo "|$leadid|\n";}
if (!$rslt) {die('Could not execute: ' . mysql_error());}
#Insert values into vtiger_leaddetails edited by noah 1-17-2011 added comments and '$comments' and title to designation
$stmt = "INSERT INTO vtiger_leaddetails (leadid,salutation,firstname,lastname,company,comments) values('$leadid','$title','$first_name','$last_name','$first_name $last_name','$comments');";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $linkV);
if (!$rslt) {die('Could not execute: ' . mysql_error());}