Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Aug 23, 2019 3:33 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Sorting of drop downs
PostPosted: Tue Jun 15, 2010 4:36 pm 
Offline

Joined: Sun Dec 27, 2009 8:39 pm
Posts: 80
I'm not sure why the drop-down boxes aren't sorted. It makes trying to find values difficult, especially in a few areas:

- DID - when trying to assign a DID, i find myself typing the number out, but it would be nice to have the list sorted. Many times, we may try to find a few numbers for a client, and it seems that they are stored in the order they are brought in.

- Country - When adding a customer, I typically go to the bottom of the list to find US, but there's a bunch of countries/territories that should be elsewhere in the list.

I'm sure there's a few other areas where sorting would be extremely helpful.


Top
 Profile  
 
 Post subject: Re: Sorting of drop downs
PostPosted: Tue Jul 06, 2010 4:49 pm 
Offline

Joined: Tue Jul 06, 2010 4:43 pm
Posts: 1
not sorting the country was annoying me too :-) so a quick fix would be this:

edit ./customer/form_data/FG_var_signup.inc

and modify the following code

Code:
if (COUNTRY_ENABLE)  {
$HD_Form->AddEditElement(gettext("COUNTRY"),     
                                        "country",                 
                                        "$country_default_val",
                                        "SELECT", "", "", "",
                                        "sql",
                                        "cc_country", "countryname, countrycode",
                                        "", "", "%1", "", "", "", '');
$country_editFG = "country,";
}


into

Code:
if (COUNTRY_ENABLE)  {
$HD_Form->AddEditElement(gettext("COUNTRY"),     
                                        "country",                 
                                        "$country_default_val",
                                        "SELECT", "", "", "",
                                        "sql",
                                        "cc_country", "countryname, countrycode",
                                        "countrycode >=0 ORDER BY countryname ASC", "", "%1", "", "", "", '');
$country_editFG = "country,";
}


Regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group