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

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started