Yii Framework Forum: Filter (dropdown list) not working in IE - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Filter (dropdown list) not working in IE Rate Topic: -----

#1 User is offline   GSTAR 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,035
  • Joined: 30-October 09
  • Location:UK

Posted 17 March 2010 - 10:09 AM

In my database I store the "active" attribute as an integer (1/0), in my view I transform this into text (Yes/No):

Model:

public function getIsActive()
{
	return $this->active ? 'Yes' : 'No';
}


I have implemented filters in my View:

array(
	'name'=>'active',
	'value'=>'$data->isActive',
	'filter'=>array('1'=>'Yes', '0'=>'No'),
),


search() function:

$criteria->compare('active', $this->active);


The filter works OK in Firefox but not in IE ( 7/8 ).
0

#2 User is offline   GSTAR 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,035
  • Joined: 30-October 09
  • Location:UK

Posted 17 March 2010 - 12:05 PM

Anyone able to advise? Thanks!
0

#3 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,648
  • Joined: 17-January 09
  • Location:Russia

Posted 17 March 2010 - 12:21 PM

Looks like a bug. Please fill a report: http://code.google.c...yii/issues/list
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
1

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 29 March 2010 - 07:08 AM

I found some workaround: http://code.google.c...Stars%20Summary
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   fastcrash 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 10-March 10
  • Location:South Jakarta

Posted 02 June 2010 - 12:04 AM

any progress with this issue?

how to solve it?

i not using svn yet.

???
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users