directorlive / oppia

Automatically exported from code.google.com/p/oppia
Apache License 2.0
0 stars 0 forks source link

Error when trying to save exploration with empty value in the map rule editor #611

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a state with a map interaction
2. Create a new rule, input values for distance, Latitude, and Longitude.
3. Edit the rule, change the rule type from 'is within ... distance' to 'is not 
within ... distance'
4. Try to save the exploration.

What is the expected output? What do you see instead?
I expect to be able to save the exploration. Instead I see an error that says: 

Warning! Expected float, received

It turns out that when changing from 'is within ... distance' to 'is not within 
... distance', the distance value gets erased, but this is not noticeable. 
Furthermore, it's possible to save the rule when a value is missing, and you 
won't know there's a problem until you try to save the whole exploration.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by amitdeut...@google.com on 17 Feb 2015 at 7:29

GoogleCodeExporter commented 9 years ago
I think this is fixed in develop. Please could you verify?

Original comment by s...@seanlip.org on 22 Feb 2015 at 8:30

GoogleCodeExporter commented 9 years ago
ping!

Original comment by s...@seanlip.org on 10 Apr 2015 at 4:24

GoogleCodeExporter commented 9 years ago
Verified, thanks!

Original comment by amitdeut...@google.com on 10 Apr 2015 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by s...@google.com on 10 Apr 2015 at 4:44