[whups] Link turba/whups + whups patch

Matthieu Foillard m.foillard at photoways.com
Fri Apr 4 11:13:06 PST 2003


Hi,
I've set up whups and turba and the link between them works fine.
The problem is that my turba addressbook currently connect to oci8 database 
which contain about 250.000 contacts in it. So when i'm in whups and want to 
link the current ticket to contact, it tries to display the full list of 
contact which is quite big so that i can't link ticket to contact. What i 
want to do is to allow linking ticket in the contact page instade of linking 
contact in the ticket page. 
Is it possible to add something like this : 

$this->applications['turba'] = array(
    'fileroot' => dirname(__FILE__) . '/../turba',
    'webroot' => $this->applications['horde']['webroot'] . '/turba',
    'icon' => 
$this->applications['horde']['webroot'].'/turba/graphics/turba.gif',
    'name' => _("Customers"),
    'allow_guests' => false,
    'status' => 'active',
    'provides' => 'contacts',
    'menu_parent' => 'pim',
    'links' => array(
      'Bugs' => array(
        'provider' => 'projets',
        'description' => _("Bugs"),
        'readonly' => false,
        'reverse' => array(
          'description' => _("Customer Bugs"),
          'type' => 'task',
          'readonly' => false,
          )
        )
      )
);

It currently display "Bugs" at the bottom of contact, but does not allow me to 
add new bugs. I mean the is no "add new bug" button here, just an empty list.

Is there a way to do this ?

It seems that there is a little bug in Whups admin, and here is how I resolved 
it :

Index: whups/lib/Admin.php
===================================================================
RCS file: /repository/whups/lib/Admin.php,v
retrieving revision 1.34
diff -u -3 -p -r1.34 Admin.php
--- whups/lib/Admin.php 27 Mar 2003 18:44:52 -0000      1.34
+++ whups/lib/Admin.php 4 Apr 2003 08:59:39 -0000
@@ -452,7 +452,7 @@ class EditStateStep2Form extends Horde_F
         $sdesc = &$this->addVariable(_("State Description"), 'description', 
'text', true);
         $sdesc->setDefault($info['description']);

-        $scat = &$this->addVariable(_("State Category"), 'category', 'enum', 
true, false, null, array($categories));
+        $scat = &$this->addVariable(_("State Category"), 'category', 'enum', 
true, false, null, array($whups->getCategories()));
         $scat->setDefault($info['category']);
     }

I new to Horde so it mustn't be the right way to fix this, but at least it 
report a problem i encountered.

Thanks for help,
mgf


More information about the whups mailing list