Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • aria
  • aria's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 3
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 following user(s) said Thank You: twev

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.
Coding is now a piece of cake
The following user(s) said Thank You: aria

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.103 seconds

Let me first state that this is an amazing and fascinating product exactly what I was looking for. In just a few hours (listening to the very well made and clearly understandable videos learning doing) I completed and installed my first component. I am now in the second refining phase. I will make a recommenation in JED. Thanks for the effort in creating such a great product. Incidentally some of the best Joomla extension I use are of French origin !
Giori (Forum)

Get Started