Ignore:
Timestamp:
26 Sep 2007, 15:40:42 (17 years ago)
Author:
joachim
Message:

fix for #352

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/search_students.py

    r2253 r2278  
    195195        search_set = [r.id for r in res]
    196196    elif what == "name":
     197        if len(term) < 4:
     198            return context.search_students_form(rendered = rend,
     199                                                psm = "Name to short.",
     200                                                students = [],
     201                                                allowed = allowed,
     202                                               )
    197203        pt = ('StudentPersonal')
    198204        query = In('portal_type',pt) & Eq('SearchableText',"%s*" % term.strip())
Note: See TracChangeset for help on using the changeset viewer.