From 7bb136febab6315485bafb817dbe2121c83ee158 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Wed, 5 Sep 2018 14:33:57 +0530 Subject: [PATCH] data correction --- Apollo/api/application/models/Data_correction.php | 3 ++- Apollo/assets/views/edit_course.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/models/Data_correction.php b/Apollo/api/application/models/Data_correction.php index e4cab2e2..f84ea742 100644 --- a/Apollo/api/application/models/Data_correction.php +++ b/Apollo/api/application/models/Data_correction.php @@ -26,7 +26,7 @@ class Data_Correction extends CI_Model Public function GetAllCourseDetails($search) { - $this->db->select('sd.MobileNumber,sd.Firstname,sd.Lastname,CourseName,UniversityName,scd.CourseID,scd.ID,sd.StudentID,scd.IsActive as IsActive,scd.DeactiveComments as Reason,scd.UniversityID,sfs.FeesID'); + $this->db->select('sd.MobileNumber,sd.Firstname,sd.Lastname,CourseName,UniversityName,scd.CourseID,scd.ID,sd.StudentID,scd.IsActive as IsActive,scd.DeactiveComments as Reason,scd.UniversityID,sfs.FeesID,scd.Deactive'); $this->db->from('T_StudentDetails sd'); $this->db->join('T_Student_CourseDetails scd','scd.StudentID = sd.StudentID'); $this->db->join('T_CourseMaster cm','cm.CourseID = scd.CourseID'); @@ -110,6 +110,7 @@ class Data_Correction extends CI_Model $coursearr['IsActive'] = $search['IsActive']; $coursearr['DeactiveComments'] =$search['Reason']; + $coursearr['Deactive'] = '0'; $this->db->where('StudentID', $search['studentId']); $this->db->where('UniversityID', $search['University']); $this->db->where('CourseID', $search['courseId']); diff --git a/Apollo/assets/views/edit_course.html b/Apollo/assets/views/edit_course.html index e165dcf6..2abf1c2e 100644 --- a/Apollo/assets/views/edit_course.html +++ b/Apollo/assets/views/edit_course.html @@ -27,6 +27,7 @@
+
@@ -64,7 +65,7 @@ -
+