Menu Content

Podpora

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

Filter in reservations list
(1 viewing) (1) Guest
Support forum for users using free edition of Book it!. These forums are for mutual help among users.

NOTE: Due to our capacity limitations, ARTIO does not monitor this forum category regularly. If you want direct support from ARTIO, please start a ticket at Support Dashboard. If you have no support ticket available, you need to purchase it. .
  • Page:
  • 1

TOPIC: Filter in reservations list

Filter in reservations list 11 years, 12 months ago #29877

  • kami
  • OFFLINE
  • Posts: 19
Hi,
the filter above the my reservations list doesn't work correct:
The first 3 checkboxes work fine and I can select whether to display items with state active, trashed or cancelled.
But the other 3 checkboxes do not change my list (even if I uncheck all of them I see a list with all entries)
Its the same behavior in backend and frontend.
Can u help please?

Re: Filter in reservations list 11 years, 12 months ago #29905

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello

Open administrator/components/com_booking/models/reservations.php

There is code looks like

 
/**
* Get MySQL filter criteria for rezervations list
*
* @return string filter criteria in MySQL format
*/

function buildContentWhere()
{
$where = array();
$this->addStringProperty($where, 'reservation-surname', 'items-subject_title');
$this->addIntProperty($where, 'customer-id');
$this->addTimeLimit($where, 'from', 'to');
$this->addMultipleProperty($where, 'reservation-state');
$this->addMultipleProperty($where, 'reservation-paid');
return $this->getWhere($where);
}
 


Replace it

 
/**
* Get MySQL filter criteria for rezervations list
*
* @return string filter criteria in MySQL format
*/

function buildContentWhere()
{
$where = array();
$this->addStringProperty($where, 'reservation-surname', 'items-subject_title');
$this->addIntProperty($where, 'customer-id');
$this->addTimeLimit($where, 'from', 'to');
$this->addMultipleProperty($where, 'reservation-state');
$this->addMultipleProperty($where, 'paid');
return $this->getWhere($where);
}
 
ARTIO Support Team

Re: Filter in reservations list 11 years, 12 months ago #29908

  • kami
  • OFFLINE
  • Posts: 19
It works!
Thanks for this fast help!
  • Page:
  • 1
Přihlášení uživatele Prázdný