Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] filter bug + solution

[FIXED] filter bug + solution 18 Oct 2012 18:10 #4645

  • aria
  • aria's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 3
  • Karma: 2
I have a form with a grid and two filters with a combobox
The display field of the filters is type integer.
I want to filter on both filters the same time. When i fill in the first the filter works ok, but the filtercombo does not display the selected value.

The file
\administrator\components\com_apiegooien\dom\html\form\input\select\combo.php
line 189
have the code:
$selected = ($item->$listKey === $this->dataValue);
$item->$listKey is string
$this->dataValue is integer
so they do not match

Solution:
The generated code in ..../view/..../tmpl/default_filters.php:
'dataValue' => $this->filters->value,
must be changed in:
'dataValue' => strval($this->filters->value),
The administrator has disabled public write access.
The following user(s) said Thank You: twev

Re: filter bug + solution 19 Oct 2012 06:07 #4654

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: aria
Time to create page: 0.088 seconds

Get Started