fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11795] property: formatting


From: Sigurd Nes
Subject: [Fmsystem-commits] [11795] property: formatting
Date: Fri, 07 Mar 2014 14:20:52 +0000

Revision: 11795
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11795
Author:   sigurdne
Date:     2014-03-07 14:20:52 +0000 (Fri, 07 Mar 2014)
Log Message:
-----------
property: formatting

Modified Paths:
--------------
    trunk/property/inc/class.soproject.inc.php

Modified: trunk/property/inc/class.soproject.inc.php
===================================================================
--- trunk/property/inc/class.soproject.inc.php  2014-03-07 14:09:08 UTC (rev 
11794)
+++ trunk/property/inc/class.soproject.inc.php  2014-03-07 14:20:52 UTC (rev 
11795)
@@ -2939,15 +2939,18 @@
                {
                        $values  = array();
                        $sql     = 'SELECT DISTINCT fm_eco_periodization.id, 
fm_eco_periodization.descr FROM fm_eco_periodization'
-                       . " {$this->join} fm_eco_periodization_outline ON 
fm_eco_periodization.id = fm_eco_periodization_outline.periodization_id";
+                       . " {$this->join} fm_eco_periodization_outline ON 
fm_eco_periodization.id = fm_eco_periodization_outline.periodization_id"
+                       . " ORDER BY id ASC";
                        $this->db->query($sql, __LINE__, __FILE__);
 
                        while($this->db->next_record())
                        {
+                               $id      = $this->db->f('id');
+
                                $values[] = array
                                (
-                                       'id'     => $this->db->f('id'),
-                                       'name'   => $this->db->f('descr'),
+                                       'id'     => $id,
+                                       'name'   => $id . ' - ' . 
$this->db->f('descr'),
                                );
                        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]