[whups] Stable Working Copy

Chris whups at mackay.co.uk
Fri Mar 30 08:03:35 UTC 2007


Good Morning and many thanks for the responses,

I tried to use the latest CSV version, unfortunately to no avail.  I did 
look more closely at the error messages produced though and after that 
decided to go back to using the latest stable Horde (3.1.4 March 14 
2007).  I managed to find three lines of code that needed to be changed 
for me to get it to function:

Changed line 119 of whups/lib/Forms/CreateTicket.php
        $this->addVariable(_("Due Date"), 'due', 'datetime', false, false);
to:
        $this->addVariable(_("Due Date"), 'due', 'date', false, false);

Changed line 676 of whups/lib/Ticket.php
        $this->addVariable(_("Due"), 'due', 'datetime', false, true, 
null, $date_params);
to:
        $this->addVariable(_("Due"), 'due', 'date', false, true, null, 
$date_params);

Changed line 31 of whups/lib/Forms/EditTicket.php
        $this->addVariable(_("Due Date"), 'due', 'datetime', false, 
false, null, array($start_year));
to:
        $this->addVariable(_("Due Date"), 'due', 'date', false, false, 
null, array($start_year));

As you can see there seems to be a problem with the "datetime" variable, 
this may be my copy or not but..., a simple update to "date" makes it 
all work, well for me anyway. 

There maybe something I've missed on the Horde side but I'm sitting 
happy now :o).

Chris.


Jon Spriggs wrote:

> Hi there Chris,
>
> I encountered this issue, it's because you need the CVS version of 
> Horde as well. This will resolve this issue.
>
> Regards,
>
> Jon
>
> On 28/03/07, * Chris* <whups at mackay.co.uk <mailto:whups at mackay.co.uk>> 
> wrote:
>
>     Hello,
>
>     I have downloaded a CVS copy of the latest WHUPS software but
>     attempting
>     to create a new ticket brings up the error:
>
>
>           Nonexistant class "Horde_Form_Type_datetime" for field type
>     "datetime"
>
>     |[line 146 of /var/www/htdocs/horde/lib/Horde/Form.php]
>
>     |I have searched in vain for the elusive stable copy.  Does one exist
>     and does anybody know where I can download it from?  Or is there a
>     simple fix for the error above?
>
>     Many Thanks,
>
>
>     Chris
>
>     -----
>
>     This email is subject to Mackays Terms and Conditions which may be
>     found at www.mackay.co.uk/emailtc.php
>     <http://www.mackay.co.uk/emailtc.php>
>
>     Mackays of Cambridge Ltd, 85 East Road, Cambridge, CB1 1BY.
>     Registered in England 127 3862. VAT Number 860 2050 63.
>     Sales: (01223) 517000   Accounts: (01223) 727248   Bought Ledger:
>     (01223) 727250   Fax: (01223) 366350
>
>     -----
>
>     --
>     Whups mailing list - Join the hunt:
>     http://horde.org/bounties/#whups <http://horde.org/bounties/#whups>
>     Frequently Asked Questions: http://horde.org/faq/
>     To unsubscribe, mail: whups-unsubscribe at lists.horde.org
>     <mailto:whups-unsubscribe at lists.horde.org>
>
>
>
>
> -- 
> Jon Spriggs LPIC-1 Certified
> hackerkey.com://v4sw6BHUhw5ln3pr5$ck4ma3u7L$w5TUX$m5l7ADFKLRSU$i852Ne5t5BGRSb8AGKMOPTen6a2Xs0Ir5p-2.88/0g5CMT 





-----

This email is subject to Mackays Terms and Conditions which may be found at www.mackay.co.uk/emailtc.php

Mackays of Cambridge Ltd, 85 East Road, Cambridge, CB1 1BY. Registered in England 127 3862. VAT Number 860 2050 63.
Sales: (01223) 517000   Accounts: (01223) 727248   Bought Ledger: (01223) 727250   Fax: (01223) 366350

-----



More information about the whups mailing list