[horde] horde Digest, Vol 2311, Issue 2

Kenneth Miles kenneth at kmiles.co.uk
Tue Feb 10 09:09:43 UTC 2009


Quoting horde-request at lists.horde.org:


>
> Message: 5
> Date: Mon, 09 Feb 2009 19:27:13 +0100
> From: Jan Schneider <jan at horde.org>
> Subject: Re: [horde] horde Digest, Vol 2307, Issue 1
> To: horde at lists.horde.org
> Message-ID: <20090209192713.2018354yor74b3c4 at neo.wg.de>
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
> 	format="flowed"
>
> 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.
>
> --
Thanks for that Jan, now works fine after your help.

Regards, Kenneth.
http://kmiles.co.uk



More information about the horde mailing list