[Vtigercrm-commits] [vtiger development] #6213: Relate Documents to Accounts using a field
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Aug 3 04:09:20 EDT 2009
#6213: Relate Documents to Accounts using a field
--------------------------+-------------------------------------------------
Reporter: glenn.l | Owner: developer
Type: enhancement | Status: new
Priority: unassigned | Milestone: 5.1.1
Component: vtigercrm | Version: 5.1.0
Resolution: | Keywords: vtlib, relatedto, documents
--------------------------+-------------------------------------------------
Comment (by glenn.l):
here are the changes required to copy relatedto field to senotesrel
{{{
$relatedto = $adb->query("SELECT relatedto FROM
vtiger_notes WHERE notesid= $this->id");
}}}
{{{
if(isset($relatedto) && $relatedto != '')
{
$Updatenotesrel = $adb->pquery("INSERT INTO
vtiger_senotesrel (crmid, notesid) ".
" SELECT vtiger_notes.relatedto,
vtiger_notes.notesid FROM vtiger_notes".
" WHERE vtiger_notes.notesid = $this->id
and vtiger_notes.relatedto !=0 and vtiger_notes.relatedto IS NOT NULL");
}
}}}
Apart from changes that need to be done to show UItype fields correctly,
this should allow a twoway sync between vtiger_senotesrel and the
relatedto field stored in vtiger_notes
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6213#comment:3>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list