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.057 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started