fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7334] Edited function call from get_delegates(null)


From: Torstein
Subject: [Fmsystem-commits] [7334] Edited function call from get_delegates(null) to get_delegates(null, true).
Date: Wed, 01 Jun 2011 08:49:56 +0000

Revision: 7334
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7334
Author:   vator
Date:     2011-06-01 08:49:56 +0000 (Wed, 01 Jun 2011)
Log Message:
-----------
Edited function call from get_delegates(null) to get_delegates(null, true). 
Thde function now selects distinct rows. 

Modified Paths:
--------------
    trunk/frontend/inc/class.uidelegates.inc.php

Modified: trunk/frontend/inc/class.uidelegates.inc.php
===================================================================
--- trunk/frontend/inc/class.uidelegates.inc.php        2011-05-31 05:59:50 UTC 
(rev 7333)
+++ trunk/frontend/inc/class.uidelegates.inc.php        2011-06-01 08:49:56 UTC 
(rev 7334)
@@ -18,7 +18,7 @@
                
 
                public function index()
-               {               
+               {       
                        $config = CreateObject('phpgwapi.config','rental');
                        $config->read();
                        $use_fellesdata = 
$config->config_data['use_fellesdata'];       
@@ -141,7 +141,7 @@
                                }
                        }
                        else if(isset($_POST['remove']))
-                       {
+                       { 
                                $account_id = phpgw::get_var('account_id'); 
                                $result = 
frontend_bofrontend::remove_delegate($account_id,null,null);
                                if($result)
@@ -168,10 +168,10 @@
                                        $msglog['error'][] = array('msg' => 
lang('remove_delegate_error'));     
                                }
                        }
-                       
+
                        $form_action = 
$GLOBALS['phpgw']->link('/index.php',array('menuaction' => 
'frontend.uidelegates.index'));
                        $delegates_per_org_unit = 
frontend_bofrontend::get_delegates($this->header_state['selected_org_unit']);
-                       $delegates_per_user = 
frontend_bofrontend::get_delegates(null);
+                       $delegates_per_user = 
frontend_bofrontend::get_delegates(null, true);
                        
                        $number_of_delegates = count($delegates_per_org_unit);
                        $number_of_user_delegates = count($delegates_per_user);




reply via email to

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