From 638648b5bb82172bffe7260c5f6c76f91aaa8f60 Mon Sep 17 00:00:00 2001
From: peema_phongam <pp.majung@gmail.com>
Date: Wed, 5 May 2021 15:18:25 +0700
Subject: [PATCH] splice question

---
 hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js b/hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
index da91fe6..c34dad8 100644
--- a/hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
+++ b/hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
@@ -191,10 +191,11 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
       })
       setThreeScore += sumSentence
     })
-
     //Set 1 + 2
-    $scope.question.question.splice(2, 1)
-    let setOneTwoScore = $scope.question.getRealScore($scope.question.getQuestion())
+    let copyQuestion = JSON.parse(JSON.stringify($scope.question));
+    copyQuestion.question.splice(2, 1)
+    let setOneTwoScore = $scope.question.getRealScore(copyQuestion.question)
+    
 
     $scope.DHASSupReadTestGrade = 'Unknown'
     $scope.DHASSupReadTestScore = setThreeScore + setOneTwoScore
--
libgit2 0.26.0