edx/edx-platform — pull request #5146 by lduarte1991 (2014-09-09 19:26:07+00:00)
Title: Text Annotation Tool: Reply/Grouping Bug Fix

**Note:** 4 courses are either starting in the next few days or started last week. This is a very small but important bug fix.

**Background:** Our backend handles "Replies" (basically annotations with a "parent id" to the annotation being replied to) but the vendor tool we are using to annotate called Annotator can't handle these as they do not have anything highlighted. When I recently added the Grouping plugin I forgot to check whether the attribute "highlight" exists within the annotation object. *So basically this bug fix is just a lot of ```if (annotation.highlights !== undefined)``` to make sure it doesn't crash.*

**Studio Update:** None.

**LMS Update:** Things shouldn't break after creating a reply now.

**Testing:**
1. Using the following [tarball](https://www.dropbox.com/s/r684ber7z4ddqtc/2014_T4.DPRfFs.tar.gz), create a new annotation or two.
2. Go into 'Public' and reply to the annotation using the Reply button in the table below the source text.
3. Try going to Instructor or MyNotes
a. In the old version you should see nothing happening and the following message, basically breaking the tool:
![Error message](http://i.imgur.com/SGpUYcZ.png)
b. In the new version you should be able to travel back and forth freely between all tabs after creating a reply.