[turba] Actions Show Contacts / Lists don't appear with Turba

eugenio vota eugenio.vota at arpnet.it
Thu Jan 18 01:01:37 PST 2007


Zitat von Andy Wright <horde at eltofts.homelinux.com>:

>>eugenio vota wrote:
>>    
>>
>>>Hi all, setting up lastest stable release of  Turba 2.1.3 ( Horde 3.1.3),
>>>I found that now browsing the Personal Address Book (mysql for my  
>>>environment),
>>>don't appear the actions Show Lists, Show Contacts and Show All, on  
>>>top of the column heading.
>>>
>>>Looking for the trouble , it seems that the test (near row 51 of  
>>>the file   turba/templates/browse/action.inc )
>>>is every time false, but I don't know why?
>>>
>>>
>>>      <?php
>>>      $browse_link =
>>>      Util::addParameter(Horde::applicationUrl('browse.php'),
>>>      'source', $source);
>>>      if ($this->getType() == 'directory' &&
>>>      !empty($cfgSources[$source]['map']['__type'])) {
>>>          printf(_("Show %s"),
>>>      Horde::widget(Util::addParameter($browse_link, 'show','lists'),
>>>      _("Show Lists"), 'widget', '', '', _("_Lists")) . ', ' .
>>>              Horde::widget(Util::addParameter($browse_link, 'show',
>>>      'contacts'), _("Show Contacts"), 'widget', '', '',
>>>      _("_Contacts")) . ', ' .
>>>              Horde::widget(Util::addParameter($browse_link, 'show',
>>>      'all'), _("Show All"), 'widget', '', '', _("All")));
>>>      }
>>>      ?>
>>>
>>>Anyone knows if it's a configuration issue ?
>>>
>>>Thanks a lot.
>>>
>>>      
>>>
>>Ticket 4118 on bugs.horde.org
>>    
>>
>
>No, the ticket is about CVS HEAD code.
>
>Jan.
>
>  
>
If it can be useful for somebody,  I found that variable  $cfgSources is 
empty every time so the test fails however.

Now I hacked the test as follow:

    if ($this->getType() == 'directory' && $source == 'localsql') {

It isn't a general purpose patch, but work fine for me!

Bye,

E.





More information about the turba mailing list