From 51c4cb3de1c3638778ef2eae4239db9cd4c83513 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Thu, 11 Dec 2014 11:59:11 +1100
Subject: [PATCH] fix helper

---
 .../discourse/lib/ember_compat_handlebars.js        | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/app/assets/javascripts/discourse/lib/ember_compat_handlebars.js b/app/assets/javascripts/discourse/lib/ember_compat_handlebars.js
index 0fc916e85..35819b3df 100644
--- a/app/assets/javascripts/discourse/lib/ember_compat_handlebars.js
+++ b/app/assets/javascripts/discourse/lib/ember_compat_handlebars.js
@@ -97,12 +97,13 @@
   };
 
   RawHandlebars.get = function(_this, property, options){
-    var val;
-
-    if (options.types && options.data.view && options.types[0] === "ID") {
-      val = options.data.view.getStream(property).value();
-    } else {
-      val = Em.get(_this, property);
+    var val = property;
+    if (options.types[0] === "ID"){
+      if (options.types && options.data.view) {
+        val = options.data.view.getStream(property).value();
+      } else {
+        val = Em.get(_this, property);
+      }
     }
 
     return val;