[horde] horde Digest, Vol 2307, Issue 1

Jan Schneider jan at horde.org
Mon Feb 9 18:27:13 UTC 2009


Zitat von Kenneth Miles <kenneth at kmiles.co.uk>:

>
>>
>> Zitat von Kenneth Miles <kenneth at kmiles.co.uk>:
>>
>>> I have managed to get the Whups ticket system to work, Tickets
>>> (whups)  H3 (1.0), but when logged in as guest the ticket state box
>>> is empty so preventing a new ticket being raised by a guest.
>>
>> And do you have any states defined in the ticket type administration?
>>
>> Jan.
>>
> States are defined and it works when a user is logged on but not for a guest.
> I got around it by changing if (Auth::getAuth()) in  
> /usr/share/horde/whups/lib/Forms/CreateTicket.php
>
>  function CreateStep3Form(&$vars)
>     {
>         global $whups_driver, $conf;
>
>         parent::Horde_Form($vars, _("Create Ticket - Step 3"));
>
>         $states = $whups_driver->getStates($vars->get('type'),  
> 'unconfirmed');
>         $attributes =  
> $whups_driver->getAttributesForType($vars->get('type'));
>
>         $queue = $vars->get('queue');
>         $info = $whups_driver->getQueue($queue);
>
>        /* if (Auth::getAuth())*/ {
>             $states2 = $whups_driver->getStates($vars->get('type'),
>                                                 array('new', 'assigned'));
>             if (is_array($states2)) {
>                 $states = $states + $states2;
>             }
>         }

Ah, you don't have states in the state category "unconfirmed", but  
these are the only states that guest have access to.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list