[Vtigercrm-developers] Popup fields

Uma S uma.s at vtiger.com
Wed Feb 4 16:19:36 GMT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150204/9a75b8f4/attachment.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/9a75b8f4/attachment.png>


More information about the vtigercrm-developers mailing list