show inactive status for inactive enrollments on sis export

fixes CNVS-23667

test plan
 - set an enrollment to inactive via sis import
 - run sis export it should have inactive instead of nil

Change-Id: I125698dde37a0511c1a196c25c414fc5fbbb9345
Reviewed-on: https://gerrit.instructure.com/64495
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2015-10-02 10:40:26 -06:00
parent 8dd8e03623
commit 2b4a7f4d22
1 changed files with 1 additions and 0 deletions

View File

@ -431,6 +431,7 @@ module AccountReports
WHEN enrollments.workflow_state = 'creation_pending' THEN 'invited'
WHEN enrollments.workflow_state = 'active' THEN 'active'
WHEN enrollments.workflow_state = 'completed' THEN 'concluded'
WHEN enrollments.workflow_state = 'inactive' THEN 'inactive'
WHEN enrollments.workflow_state = 'deleted' THEN 'deleted'
WHEN enrollments.workflow_state = 'rejected' THEN 'rejected' END AS enroll_state").
joins("INNER JOIN #{CourseSection.quoted_table_name} cs ON cs.id = enrollments.course_section_id