Commit 71e9f448 by lduarte1991 Committed by David Baumgold

Annotator Tools: Fix major logic bug in code

parent 26b08a02
...@@ -76,8 +76,9 @@ Annotator.Plugin.Flagging = (function(_super) { ...@@ -76,8 +76,9 @@ Annotator.Plugin.Flagging = (function(_super) {
*/ */
Flagging.prototype.updateField = function(field, annotation) { Flagging.prototype.updateField = function(field, annotation) {
// figure out whether annotation is of image or not // figure out whether annotation is of type image or if ova is not defined (meaning it
var user_email = annotation.media === "image" ? // it doesn't have a type yet, but it is still an image).
var user_email = (annotation.media === "image" || typeof ova === 'undefined') ?
osda.options.optionsAnnotator.permissions.user.id: osda.options.optionsAnnotator.permissions.user.id:
ova.options.optionsAnnotator.permissions.user.id; ova.options.optionsAnnotator.permissions.user.id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment