Author: michkinn
Date: 2010-04-16 11:01:06 +0200 (Fri, 16 Apr 2010)
New Revision: 29178
Modified:
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
Log:
Modified:
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
===================================================================
---
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
2010-04-16 08:56:16 UTC (rev 29177)
+++
plugins/sfDoctrineFBAutocompletePlugin/trunk/lib/widget/sfWidgetFormDoctrineFBAutocompleter.class.php
2010-04-16 09:01:06 UTC (rev 29178)
@@ -104,10 +104,10 @@
$config =
$json_url.$cache.$newel.$firstselected.$filter_case.$filter_hide.$filter_selected.$complete_text.$maxshownitems.$maxitems.$onselect.$onremove.$delay;
$config = substr($config,0,-1);
- $multiple = empty($maxitems) || $this->getOption('maxitems') > 1 ;
+ $multiple = empty($maxitems) || (!empty($maxitems) &&
$this->getOption('maxitems') > 1) ;
- $associatedWidget = new sfWidgetFormSelect(array('multiple' => , 'choices'
=> $associated ));
+ $associatedWidget = new sfWidgetFormSelect(array('multiple' => $multiple ,
'choices' => $associated ));
return strtr($this->getOption('template'), array(
'%id%' => $this->generateId($name),
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.