Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Upgraded - and lost month selector
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Upgraded - and lost month selector

Upgraded - and lost month selector 11 years, 11 months ago #34913

Just upgraded to the latest Booking and our month selector seems to have disappeared on each object page. Any quick fix? The link to the next month still works though.
Attachments:
Last Edit: 11 years, 11 months ago by maju. Reason: Removed link to website
The topic has been locked.

Re: Upgraded - and lost month selector 11 years, 11 months ago #34920

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

What php version do you have?

And can you check this file?
administrator/components/com_booking/helpers/html.php

Around line 628 should be this function:
function getMonthsSelect($name, $selectedMonth, $selectedYear, $deep, $attribs = '')
{
$arr = array();
 
$date = JFactory::getDate();
 
$m = $date->toFormat('%m');
$y = $date->toFormat('%Y');
 
for ($i = 0; $i <= $deep; $i ++) {
$date = JFactory::getDate("$y-$m-01 + $i month");
/* @var $date JDate */
$arr[] = JHTML::_('select.option', ((int) $date->toFormat('%m') . ',' . (int) $date->toFormat('%Y')), ($date->toFormat('%B') . '/' . $date->toFormat('%Y')));
}
return JHTML::_('select.genericlist', $arr, $name, $attribs, 'value', 'text', $selectedMonth . ',' . $selectedYear);
}


Can you try to modify it to this version? This should be change probably for 1.5.3.
ARTIO Support Team
Last Edit: 11 years, 11 months ago by maju.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný