In Teacher Edit, 'Undo Changes' fails when done twice [2020:O]

Issue #786 resolved
Brian Lewis repo owner created an issue

Click Edit to go into Edit mode, . Undo Changes returns to not-editing mode.

Repeat this process and Undo changes does not return to non-eiting mode.

This may be a broader problem than in Teacher form?

Comments (5)

  1. Ghislain Hachey

    @Brian Lewis Actually the behavior I see is different. The first undo never works and does a save. Subsequent undos seem to work as expected.

  2. Brian Lewis reporter

    The first Undo doesn't save - but does not reset the edited values on the model in memory.

    Changing this to reread the object from the server in the event of undo - probably the safest approach?

    For a New object, call getNew() again

  3. Log in to comment