[horde] horde Digest, Vol 2307, Issue 1

Kenneth Miles kenneth at kmiles.co.uk
Wed Feb 4 10:41:45 UTC 2009


>
> 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;
             }
         }

Regards, Kenneth.


More information about the horde mailing list