phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [18539] Temporary fix the only one notes symptom ...


From: Caeies
Subject: [Phpgroupware-cvs] [18539] Temporary fix the only one notes symptom ...
Date: Wed, 21 May 2008 16:04:37 +0000

Revision: 18539
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18539
Author:   Caeies
Date:     2008-05-21 16:04:36 +0000 (Wed, 21 May 2008)

Log Message:
-----------
Temporary fix the only one notes symptom ... Waiting for better solution

Modified Paths:
--------------
    trunk/notes/inc/class.bonotes.inc.php
    trunk/notes/inc/class.sonotes.inc.php

Modified: trunk/notes/inc/class.bonotes.inc.php
===================================================================
--- trunk/notes/inc/class.bonotes.inc.php       2008-05-18 11:04:19 UTC (rev 
18538)
+++ trunk/notes/inc/class.bonotes.inc.php       2008-05-21 16:04:36 UTC (rev 
18539)
@@ -241,6 +241,14 @@
                                'lastmod'       => $lastmod
                        ));
                        $this->total_records = $this->sonotes->total_records;
+                       if($this->total_records)
+                       {
+                               foreach($notes as &$note)
+                               {
+                                       $note['owner'] = 
$GLOBALS['phpgw']->accounts->id2name($note['owner']);
+                               }
+                               reset($notes);
+                       }
                        return $notes;
                }
 

Modified: trunk/notes/inc/class.sonotes.inc.php
===================================================================
--- trunk/notes/inc/class.sonotes.inc.php       2008-05-18 11:04:19 UTC (rev 
18538)
+++ trunk/notes/inc/class.sonotes.inc.php       2008-05-21 16:04:36 UTC (rev 
18539)
@@ -134,7 +134,7 @@
                                (
                                        'note_id'       => 
$this->db->f('note_id'),
                                        'owner_id'      => 
$this->db->f('note_owner'),
-                                       'owner'         => 
$GLOBALS['phpgw']->accounts->id2name($this->db->f('note_owner')),
+                                       'owner'         => 
$this->db->f('note_owner'),
                                        'access'        => 
$this->db->f('note_access'),
                                        'date'          => 
$GLOBALS['phpgw']->common->show_date($this->db->f('note_date')),
                                        'cat_id'        => 
$this->db->f('note_category'),






reply via email to

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