Ticket #5344 (new defect)

Opened 4 months ago

Last modified 4 months ago

Sales cycle stages strange

Reported by: OlivierAufrere Assigned to: developer
Priority: unassigned Milestone: 5.1.0
Component: vtigercrm Version: 5.0.4
Keywords: stage status quotes invoice Cc:

Description

Hi
When you create a Quote, Invoice, PS, SO etc. The status or stage is accepted or approuved, which is clearly not the first step. Here there is a sort that may not be.
Just delete the sort (the worst is that when you translate, even the alphabetic order is not respected)
This does not occures with other picklist. They just use row order.

Regards,
Olivier

Change History

09/02/08 11:08:48 changed by OlivierAufrere

Here is a fix, please check it (according to 5.0.4):
in include/utils/EditViewUtils.php
after //Query modified to fix the order of the picklist values ticket #4367
if($module_name == 'HelpDesk?' && $fieldname == 'ticketstatus')
{

$pick_query.=" order by ".$fieldname."_id asc";

}
else if($module_name != 'Events' && $module_name != 'Calendar')
$pick_query.=" order by $fieldname asc";

May be applicable to admin to, then move it after the next }

and to solve the sort trouble, change the last line to:
$pick_query.=" order by ".$fieldname."id asc";

09/05/08 01:50:06 changed by OlivierAufrere

Sorry I forgot:
You must change the line:
if($module_name == 'HelpDesk?' && $fieldname == 'ticketstatus')
to
if($module_name == 'HelpDesk?')