protected function is_same_response(question_attempt_step $pendingstep)
 {
     if (!parent::is_same_response($pendingstep)) {
         return false;
     }
     // If the question part of the response is exactly the same, then
     // we need to check if the previous action was a save, and this action
     // is a submit.
     if ($pendingstep->has_behaviour_var('submit') && !$this->qa->get_last_step()->has_behaviour_var('submit')) {
         return false;
     }
     return true;
 }