[Vtigercrm-developers] V6 List View Orderby Sort By

Vikas Jain vikas at vtiger.com
Mon Jul 1 10:17:12 UTC 2013


Daniel,

Sorry for overlooking your question, yes you are correct we are not
currently using the base class order by and sort order.
I have created a trac
<http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7706>ticket for it.

On 1 July 2013 13:37, Daniel Thompson <developingdanny at gmail.com> wrote:

> 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/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Regards
Vikas
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130701/14817db2/attachment.html>


More information about the vtigercrm-developers mailing list