diff --git a/src/app/misc.coffee b/src/app/misc.coffee index 8c960323ce..6187bfc9f1 100644 --- a/src/app/misc.coffee +++ b/src/app/misc.coffee @@ -132,6 +132,6 @@ module.exports.viewHelpers = (view) -> #Challenges view.fn 'taskInChallenge', taskInChallenge view.fn 'taskAttrFromChallenge', (task, attr) -> - t = taskInChallenge(task) + t = taskInChallenge.call(@,task) t and t[attr] view.fn 'brokenChallengeLink', (task) -> task?.challenge and !taskInChallenge.call(@,task)