Tri par ordre alphabétique et suppression des codes
This commit is contained in:
parent
8bc286bdab
commit
b0c5b83115
@ -85,12 +85,12 @@ class Object_Codepostaux extends Libs_Row
|
||||
public function _getRegions()
|
||||
{
|
||||
$region = new Table_Regions();
|
||||
$regions = $region->fetchAll($region->select())->toArray();
|
||||
$regions = $region->fetchAll($region->select()->order('NCCENR ASC'))->toArray();
|
||||
$structure = array();
|
||||
|
||||
foreach($regions as $nom) {
|
||||
$structure[] = array(
|
||||
'data' => $nom['REGION'].' '.$nom['NCCENR'],
|
||||
'data' => $nom['NCCENR'],
|
||||
'attr' => array('id' => $this->getDepartement($nom['REGION']),
|
||||
'niveau' => 0,
|
||||
'class' => $this->_getClass($this->getDepartement($nom['REGION']), 0)
|
||||
|
Loading…
Reference in New Issue
Block a user