Skip to content
  • Dan Poltawski's avatar
    MDL-57604 mod_assign: fix incorrect user being selector from chooser · 76bab368
    Dan Poltawski authored
    Previously there was a logic bug where by if some students were filtered
    from the list, the label for another student could be attached to the
    'filered' student.
    
    This fix reworks the promises a bit so we render the student summary and
    then build an row with the explict user id, rather than itterating through
    the array later.
    
    I also remove the storing of the initial promise in a varible because
    this is an easy way to introduce a bug (not waiting for the .then()
    chained promise)
    76bab368