A small patch for horde/turba/lib/AbstractObject.php
Atif Ghaffar
aghaffar@developer.ch
Tue, 10 Apr 2001 04:02:05 +0200
---------------------- multipart/mixed attachment
Didnt know which one is the correct list for Turba development dev |
turba?
I have made a small modification to horde/turba/lib/AbstractObject.php
The change:
in getValue if $this->attributes[$attribute] is not set and
$HTTP_GET_VARS[$attribute] isset then return $HTTP_GET_VARS[$attribute]
else return ''.
So now one can call addobject.php with querystring.
Example:
http://www.horde.org/horde/turba/addobject.php?name=3DAtif%20Ghaffar&emai=
l=3Datif@developer.ch
This will bring the addobject screen with name and email filled in.
The patch is attached.
thanks
-- =
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
+41 21 351 53 60 =A6 voice
+41 78 787 51 45 =A6 mobile
+41 86 0796598972=A6 fax
http://www.4unet.net =A6 www
http://atif.developer.ch =A6 homepage
atif.ghaffar@4unet.net =A6 email
---------------------- multipart/mixed attachment
--- AbstractObject.php Tue Apr 10 03:57:30 2001
+++ AbstractObject.php.atif Tue Apr 10 03:57:12 2001
@@ -55,7 +55,9 @@
*/
function getValue($attribute)
{
- return (isset($this->attributes[$attribute]) ? $this->attributes[$attribute] : '');
+ global $HTTP_GET_VARS;
+ return (isset($this->attributes[$attribute]) ? $this->attributes[$attribute] :
+ isset($HTTP_GET_VARS[$attribute])?$HTTP_GET_VARS[$attribute]:'');
}
/**
---------------------- multipart/mixed attachment--