Possibly fix EDU-682 Multihints are not saved
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 22 Jul 2016 18:39:05 +0000 (21:39 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 22 Jul 2016 18:43:00 +0000 (21:43 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderPanel.java

index 3a242be98ff527fa5cde86daaecebc781c3b2610..bbd48a859f3407a8928f4d5303655b3586cc773c 100644 (file)
@@ -92,6 +92,9 @@ public class CCCreateAnswerPlaceholderPanel extends JPanel {
     if (myShownHintNumber == 0 && hintText.equals(ourDefaultHintText)) {
       myHints.set(myShownHintNumber, "");
     }
+    else {
+      myHints.set(myShownHintNumber, hintText);
+    }
     
     return myHints;
   }