Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py	(revision 13873)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py	(revision 13874)
@@ -3124,18 +3124,22 @@
             return
         if 'UPDATE' in form:
-            tno = 0
             error = ''
             if not editable_tickets:
                 return
             scores = form['scores']
+            sids = form['sids']
             if isinstance(scores, basestring):
                 scores = [scores]
+            if isinstance(sids, basestring):
+                sids = [sids]
+            formvals = dict([(sids[i], scores[i]) for i in range(len(sids))])
             for ticket in editable_tickets:
                 score = ticket.score
-                if scores[tno] == '':
+                sid = ticket.student.student_id
+                if formvals[sid] == '':
                     score = None
                 else:
                     try:
-                        score = int(scores[tno])
+                        score = int(formvals[sid])
                     except ValueError:
                         error += '%s, ' % ticket.student.display_fullname
@@ -3147,5 +3151,4 @@
                          ticket.level, ticket.code, score))
                     #notify(grok.ObjectModifiedEvent(ticket))
-                tno += 1
             if error:
                 self.flash(_('Error: Score(s) of %s have not be updated. '
Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/editscorespage.pt
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/editscorespage.pt	(revision 13873)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/editscorespage.pt	(revision 13874)
@@ -21,4 +21,6 @@
           <input type="text" name="scores" class="form-control"
   	             tal:attributes="value ticket/score" />
+          <input type="hidden" name="sids"
+                 tal:attributes="value ticket/student/student_id" />
       </td>
       <td tal:condition="not: ticket/editable_by_lecturer"
