[Vtigercrm-commits] [vtiger development] #7669: Documents Module - Unable to add custom fields
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Apr 15 11:05:45 UTC 2013
#7669: Documents Module - Unable to add custom fields
------------------------+-------------------------
Reporter: m.brummell | Owner: apparao
Type: defect | Status: assigned
Priority: major | Milestone: Unassigned
Component: vtigercrm | Version: 6.0 ea
Severity: Medium | Resolution:
Keywords: |
------------------------+-------------------------
Comment (by stprasad):
Appa Rao garu,
In the script Smarty/templates/Settings/LayoutBlockEntries.tpl this
condition
{if $entries.hascustomtable && $entries.blockid neq $COMMENTSECTIONID &&
$entries.blockid neq $SOLUTIONBLOCKID }
controls the availability of the function
For the documents module, entries.hascustomtable is not set and therefore
returns false
My earlier hack override was to allow by checking $MODULE == 'Documents',
but that is a bad way.
I searched more
This value is set in modules/Settings/LayoutBlockList.php
which because there is no value returned from $focus->customFieldTable
$cflist[$i]['hascustomtable'] = $focus->customFieldTable;
So the correct and upgrade safe answer is
INSERT LINE
var $customFieldTable = Array('vtiger_notescf', 'notesid');
in modules/Documents/Documents.php
BETWEEN (LINE 29)
var $tab_name_index =
Array('vtiger_crmentity'=>'crmid','vtiger_notes'=>'notesid','vtiger_senotesrel'=>'notesid');
AND (LINE 31)
var $column_fields = Array();
All is well.
Thanks all
S.T.Prasad
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7669#comment:5>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list