fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7895] property: mode for internal links


From: Sigurd Nes
Subject: [Fmsystem-commits] [7895] property: mode for internal links
Date: Wed, 19 Oct 2011 06:58:46 +0000

Revision: 7895
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7895
Author:   sigurdne
Date:     2011-10-19 06:58:43 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
property: mode for internal links

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

Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2011-10-18 19:56:23 UTC (rev 
7894)
+++ trunk/property/inc/class.uilocation.inc.php 2011-10-19 06:58:43 UTC (rev 
7895)
@@ -1713,6 +1713,7 @@
                                        $this->bocommon->no_access();
                                        return;
                                }
+                               $mode = 'view';
                        }
                        else
                        {
@@ -1721,6 +1722,7 @@
                                        $this->bocommon->no_access();
                                        return;
                                }
+                               $mode = 'edit';
                        }
 
                        $values = array();
@@ -2076,7 +2078,7 @@
                                                                (
                                                                        
'entity_link'                   => $GLOBALS['phpgw']->link('/index.php',array
                                                                        (
-                                                                               
'menuaction'=> 'property.uilocation.edit',
+                                                                               
'menuaction'=> "property.uilocation.{$mode}",
                                                                                
'location_code'=>implode('-',array_slice($location, 0, $location_type['id']))
                                                                        )
                                                                ),




reply via email to

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