[Vtigercrm-developers] V6 List View Orderby Sort By

Daniel Thompson developingdanny at gmail.com
Mon Jul 1 08:07:37 UTC 2013


Hi Vikas,

I thought this was the case.

To confirm in the main class file i've checked in this case 'Leads'

modules/Leads/Leads.php

//Added these variables which are used as default order by and sortorder in
ListView
var $default_order_by = 'lastname';
var $default_sort_order = 'ASC';

But it always seems to be changing this to modified time.

Regards

Danny

Is this a big


On 1 July 2013 06:18, Vikas Jain <vikas at vtiger.com> wrote:

> Daniel,
>
> These instance variable are the same that are set in the main class, we
> are using getForSql API to
> prevent any sql injection.
>
> On 28 June 2013 14:10, Daniel Thompson <developingdanny at gmail.com> wrote:
>
>> Hi,
>>
>> I have a question about below;
>>
>> $orderBy = $this->getForSql('orderby');
>> $sortOrder = $this->getForSql('sortorder');
>>
>> /models/ListView.php
>>
>> These functions don't seem to relate to the module instance variable set
>> in the main class for sortorder and orderby.
>>
>> Are they suppose to or are these now set in a different area?
>>
>> Regards
>>
>> Danny
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
>
> --
> Regards
> Vikas
> Vtiger Team
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130701/46a0a00a/attachment.html>


More information about the vtigercrm-developers mailing list