[Vtigercrm-commits] [vtiger development] #6171: unsetRelatedModules does not work
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Jul 16 18:46:56 EDT 2009
#6171: unsetRelatedModules does not work
------------------------+---------------------------------------------------
Reporter: R.Cohen | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.1.0
Component: vtigercrm | Version: 5.1.0-rc
Keywords: |
------------------------+---------------------------------------------------
Function Vtiger_Field.unsetRelatedModules does not perform its function.
This is due to an invalid reference to the field's module.
Error code (vtlib/Vtiger/Field.php line 154):
{{{
$adb->pquery('DELETE FROM vtiger_fieldmodulerel
WHERE fieldid=? AND module=? AND relmodule = ?',
Array($this->id, $this->module->name, $relmodule));
}}}
Problem '''$this->module->name''' does not exist. Should be:
{{{
$adb->pquery('DELETE FROM vtiger_fieldmodulerel
WHERE fieldid=? AND module=? AND relmodule = ?',
Array($this->id, $this->getModuleName(), $relmodule));
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6171>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list