[Zope-CMF] CMFCalendar Event search problem
Tres Seaver
tseaver@palladion.com
Sun, 03 Jun 2001 22:30:38 -0400
Snebjørn Andersen wrote:
> I've noticed a problem when using the search form to find calendar
> events: if I put a word I know is in the event's descripton in the 'Full
> Text' field, the event I'm looking for is found, but if I select 'Event'
> for the Item type (with the 'Full Text' field containing the same word)
> I get an empty search result.
>
> It appears to work fine with other item types.
Thanks for pointing this out! I've just checked in a change which makes
the search form use the 'Type' index, rather than 'meta_type'; Events
surfaced the bug because their meta_type is different than their "portal"
type (images and files would also have broken, I think). Here is the
patch:
--- CMFDefault/skins/generic/search_form.dtml 2001/04/25 18:09:35 1.5
+++ CMFDefault/skins/generic/search_form.dtml 2001/06/04 02:51:03 1.6
@@ -113,7 +113,7 @@
<th> Item type
</th>
<td>
- <select name="meta_type:list" multiple size="5">
+ <select name="Type:list" multiple size="5">
<dtml-in expr="portal_types.listTypeInfo()" reverse>
<option><dtml-var expr="_['sequence-item'].getId()"></option>
</dtml-in>
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org