[20963] improvement: lookup rental contracts based on location
Sigurd Nes <[email protected]> Wed, 13 Jan 2010 22:38:46 +0000
| Newsgroups | gmane.comp.web.phpgroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 20963
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20963
Author: sigurdne
Date: 2010-01-13 22:38:46 +0000 (Wed, 13 Jan 2010)
Log Message:
-----------
improvement: lookup rental contracts based on location
Modified Paths:
--------------
people/sigurdne/modules/property/trunk/inc/class.uilocation.inc.php
Modified: people/sigurdne/modules/property/trunk/inc/class.uilocation.inc.php
===================================================================
--- people/sigurdne/modules/property/trunk/inc/class.uilocation.inc.php 2010-01-13 22:37:07 UTC (rev 20962)
+++ people/sigurdne/modules/property/trunk/inc/class.uilocation.inc.php 2010-01-13 22:38:46 UTC (rev 20963)
@@ -502,6 +502,34 @@
)
);
+ $parameters3 = array
+ (
+ 'parameter' => array
+ (
+ array
+ (
+ 'name' => 'search_for',
+ 'source' => 'location_code'
+ ),
+ )
+ );
+
+ if($this->acl->check('run', PHPGW_ACL_READ, 'rental'))
+ {
+ $datatable['rowactions']['action'][] = array(
+ 'my_name' => 'view',
+ 'text' => lang('contracts'),
+ 'action' => $GLOBALS['phpgw']->link('/index.php',array
+ (
+ 'menuaction' => 'rental.uicontract.index',
+ 'search_type' => 'location_id',
+ 'contract_status' => 'all',
+ 'populate_form' => 'yes'
+ )),
+ 'parameters' => $parameters3
+ );
+ }
+
if($this->acl_read)
{
$datatable['rowactions']['action'][] = array(
@@ -592,7 +620,6 @@
);
}
-
unset($parameters);
}
//$uicols_count indicates the number of columns to display in actuall option-menu. this variable was set in $this->bo->read()