[Tickets #15134] Re: dev-FRAMEWORK_6_0 birthday and anniversary

noreply at bugs.horde.org noreply at bugs.horde.org
Sun Feb 5 22:48:15 UTC 2023


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/15134
------------------------------------------------------------------------------
  Ticket             | 15134
  Updated By         | impuser at bitrealm.com
  Summary            | dev-FRAMEWORK_6_0 birthday and anniversary
  Queue              | Turba
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


impuser at bitrealm.com (2023-02-05 22:48) wrote:

> Can't create a contact with a birthdate or anniversary date, unless  
> the year is 2023-2033. Form in contact shows a drop-down list of  
> dates and will not allow one to type a year. Drop-down available  
> years are 2023-2033...can't go back any further forward or backwards.
>
> Display date for imported days appear fine, but then one cannot edit  
> the contact as the year field isn't being filled in properly.

It appears that on line 529 of  
$horde-root//vendor/horde/core/lib/Horde/Core/Ui/VarRenderer/Html.php,  
there is the following declaration:

for ($i = $var->type->getProperty('start_year');

On my system, "$var->type->getProperty('start_year')" is coming up  
NULL. I don't know where it is trying to find "start_year" and decides  
that this will be the current year.

I hard-coded the start year to 1900 and now birthdays/anniversaries  
work back to the year 1900.

for ($i = 1900; $i <= $var->type->getProperty('end_year'); $i++) {







More information about the bugs mailing list