From 84fcae1d3b3237cd6c34b641ea9000681d29c030 Mon Sep 17 00:00:00 2001
From: ievavold <ievavold@wisc.edu>
Date: Thu, 23 May 2019 14:07:07 -0500
Subject: [PATCH] ROENROLL-1762 fix unset term in course details modal

---
 .../components/course-details/course-details.component.html     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/shared/components/course-details/course-details.component.html b/src/app/shared/components/course-details/course-details.component.html
index 9cff49b..c3ce498 100644
--- a/src/app/shared/components/course-details/course-details.component.html
+++ b/src/app/shared/components/course-details/course-details.component.html
@@ -3,7 +3,7 @@
     <div class="term-selection" *ngIf="type === 'search' || type === 'saved'" fxLayout="row" fxFlex="100">
       <form [formGroup]="termSelector" (ngSubmit)="addCourseToPlan($event)" style="width:100%;display:flex">
         <mat-form-field style="margin-right:20px;">
-          <mat-select placeholder="Term" aria-label="Term" matInput role="listbox" formControlName="term" cdkFocusInitial>
+          <mat-select [compareWith]="sameTermCodes" placeholder="Term" aria-label="Term" matInput role="listbox" formControlName="term" cdkFocusInitial>
             <mat-option role="option" *ngFor="let term of (droppableTermCodes$ | async)" [value]="term" >
               {{ term | getTermDescription }}
             </mat-option>
-- 
GitLab