ProjectTasks class file $list_fields incorrect
Minor, but annoying.
I have a customer who uses the $list_fields
and $list_fields_name
arrays so we can determine the exact columns and order in related list views.
Recently he's started using the ProjectTask module and asked me to set up the related list columns. It took me ages to find out why one column was always beings pushed to the left (the first column in a related list) irrespective of where it occurred in the array in the module's class file...
It turns out the $list_fields
structure is wrong.
The /* Format: Field Label => Array(tablename, columnname) */
is not correct.
It should be:
/* Format: Field Label => Array(tablename => columnname) */
Note the tablename is the index and not the first value of the array...
This probably occurs all over the place but just thought I should mention it if anyone gets confused when trying to use the Vtiger_Module_Model::getRelatedListFields()
method.