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.072 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started