CVSROOT: /sources/phpgroupware Module name: property Changes by: Sigurd Nes <sigurdne> 07/09/20 19:57:09
Modified files: inc : class.uilocation.inc.php Log message: fix lookup function for contact and vendor CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/property/inc/class.uilocation.inc.php?cvsroot=phpgroupware&r1=1.52&r2=1.53 Patches: Index: class.uilocation.inc.php =================================================================== RCS file: /sources/phpgroupware/property/inc/class.uilocation.inc.php,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- class.uilocation.inc.php 29 Mar 2007 08:48:58 -0000 1.52 +++ class.uilocation.inc.php 20 Sep 2007 19:57:09 -0000 1.53 @@ -24,7 +24,7 @@ * @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/ * @package property * @subpackage location - * @version $Id: class.uilocation.inc.php,v 1.52 2007/03/29 08:48:58 sigurdne Exp $ + * @version $Id: class.uilocation.inc.php,v 1.53 2007/09/20 19:57:09 sigurdne Exp $ */ /** @@ -830,12 +830,9 @@ } $functions[$m]['name'] = 'lookup_'. $attributes_values[$r]['name'] .'()'; - $functions[$m]['link'] = $GLOBALS['phpgw']->link('/index.php',array( - 'menuaction'=>$this->currentapp.'.uilookup.addressbook', - 'column'=> $attributes_values[$r]['name'] - ) - ); - $functions[$m]['action'] = 'Window1=window.open(link,"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");'; + $functions[$m]['link'] = "menuaction:'" . $this->currentapp.".uilookup.addressbook'," + . "column:'" . $attributes_values[$r]['name'] . "'"; + $functions[$m]['action'] = 'Window1=window.open(strURL,"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");'; $m++; } @@ -855,11 +852,11 @@ } } - $lookup_functions[$m]['name'] = 'lookup_'. $attributes_values[$r]['name'] .'()'; - $lookup_functions[$m]['link'] = "menuaction:'" . $this->currentapp.".uilookup.vendor'," - . "column':" . $attributes_values[$r]['name'] . "'"; + $functions[$m]['name'] = 'lookup_'. $attributes_values[$r]['name'] .'()'; + $functions[$m]['link'] = "menuaction:'" . $this->currentapp.".uilookup.vendor'," + . "column:'" . $attributes_values[$r]['name'] . "'"; - $lookup_functions[$m]['action'] = 'Window1=window.open(strURL,"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");'; + $functions[$m]['action'] = 'Window1=window.open(strURL,"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");'; $m++; } _______________________________________________ phpGroupWare-cvs mailing list phpGroupWare-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs