[Vtigercrm-developers] Popup fields

Jonathan Sardo sardoj at gmail.com
Wed Feb 4 19:43:40 GMT 2015


Thank Uma for your answer. But how is sorted the list?
Because I declared fields in $list_fields (in the class of my module) but
the columns are not displayed in the same order than $list_fields.
It seems to be shuffle....


Regards,

Jonathan SARDO

2015-02-04 17:19 GMT+01:00 Uma S <uma.s at vtiger.com>:

> Hi,
>
> This is not a bug, we want to maintain uniformity in showing fields in
> related-list, popup and summary view.
>
> So while showing popup we will first look into summary-view enabled fields
> for popup if module doesn't have any summary view enabled fields then
> fallback to related-list fields.
>
> On Wed, Feb 4, 2015 at 8:43 PM, Jonathan Sardo <sardoj at gmail.com> wrote:
>
>> Hi,
>>
>> I think there is a bug in displaying fields for Popup.
>> Instead to display fields defined for Popup, Vtiger displays (in a Popup)
>> fields defined for Related List.
>>
>> Here the way to fix this bug (file /modules/Vtiger/models/Module.php):
>>
>> /**
>> * Function to get popup view fields
>> */
>>
>> public function getPopupViewFieldsList(){
>>    $summaryFieldsList = $this->getSummaryViewFieldsList();
>>
>>    if(count($summaryFieldsList) > 0){
>>       $popupFields = array_keys($summaryFieldsList);
>>    }else{
>>       //$popupFields = array_values($this->getRelatedListFields()); //Replace
>> this line
>>       *$popupFields = array_values($this->getPopupFields())**; *//By
>> this one
>> }
>>
>>    return $popupFields;
>> }
>>
>> Cordialement,
>>
>> Jonathan SARDO
>> [image: Images intégrées 5]
>> Tél. 06 99 45 50 47
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
>
> --
> With
> Best Regards
> Uma.S
> Vtiger Team
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150204/314fb86b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4223 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150204/314fb86b/attachment-0001.png>


More information about the vtigercrm-developers mailing list