Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Problem with filters

[SOLVED] Problem with filters 10 Oct 2011 15:56 #181

  • doob
  • doob's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Thank you received: 2
  • Karma: 5
Cook generate bad code for filters...
<?php echo JHTML::_('select.genericlist',  $this->filters['date']->list, 'filter_date', " 'onchange' => 'this.form.submit()'", 'value', 'text', $this->filters['date']->value);?>
there should be :
<?php echo JHTML::_('select.genericlist',  $this->filters['date']->list, 'filter_date', " onchange = 'this.form.submit()'", 'value', 'text', $this->filters['date']->value);?>

in ./components/com_calendar/views/events/tmpl/default_filters.php
Last Edit: 14 Oct 2011 18:17 by admin.
The administrator has disabled public write access.

Re: Problem with filters 12 Oct 2011 04:32 #204

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
That is true man... the onchange be encapsulated with ' ' makes the script not work right... good catch...
Paulo Griiettner
The administrator has disabled public write access.

Re: Problem with filters 13 Oct 2011 17:39 #225

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
How did you do this ?

This call to instance filter is deprecated since v1.2.

Combo boxes are now handled with JDom.

'onchange' => 'this.form.submit()'

This code (with '=>') should be a declaration inside JDom.

There is a confusion here. Please tell me from wich component and wich layout you got it.
Thanks.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Problem with filters 13 Oct 2011 17:53 #226

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Ok, it got it.

The problem come from enumerations.
Will be solved in next version.
Coding is now a piece of cake
Last Edit: 13 Oct 2011 18:58 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: doob

Re: Problem with filters 14 Oct 2011 18:17 #243

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Solved since version 1.3.3
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.102 seconds

Get Started