Fixes test for "default metric label" resulting in misapplied labels.
authorDavid Schoonover <dsc@wikimedia.org>
Thu, 7 Jun 2012 05:06:30 +0000 (22:06 -0700)
committerDavid Schoonover <dsc@wikimedia.org>
Thu, 7 Jun 2012 05:06:30 +0000 (22:06 -0700)
lib/data/metric-model.co

index ac3df80..a5ecd35 100644 (file)
@@ -103,7 +103,7 @@ Metric = exports.Metric = BaseModel.extend do # {{{
     
     isDefaultLabel: ->
         label = @get 'label'
-        not label or label is @getSourceColumnName() or label is @NEW_METRIC_LABEL
+        not label or label is @getPlaceholderLabel() or label is @NEW_METRIC_LABEL
     
     updateLabel: ->
         return this unless @source