Ignore:
Timestamp:
3 Feb 2009, 10:01:33 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve #605, show correct student list

File:
1 edited

Legend:

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

    r3734 r3904  
    7575    user_info['faculties'] = session_data['faculties'] = faculties
    7676    user_info['departments'] = session_data['departments'] =  departments
    77 elif "CourseAdvisers" in member.getGroups():
     77if "CourseAdvisers" in member.getGroups():
    7878    default_state = "courses_registered"
    7979    ca_view = True
     
    194194
    195195# build query string part 3
    196 if co_view:
     196if co_view and state.startswith('clear'):
    197197    if query is not None:
    198198        query = query & In('faculty',faculties) | In('department',departments)
    199199    else:
    200200        query = In('faculty',faculties) | In('department',departments)
    201 elif ca_view:
     201elif ca_view and state.startswith('courses'):
    202202    courses = [cl.split('/')[0] for cl in certificate_levels]
    203203    levels = [cl.split('/')[1] for cl in certificate_levels]
     
    229229                             students = students,
    230230                             allowed = allowed,
    231                              co_view = co_view,
    232                              ca_view = ca_view
     231                             co_view = state.startswith('clear'),
     232                             ca_view = state.startswith('courses')
    233233                             )
    234234return context.search_students_form(rendered = rend,
Note: See TracChangeset for help on using the changeset viewer.