fix null location bug

fixes PS-1560
fixes CNVS-13221

test plan:
  1. create a calendar event from the ui dialog
     without a location
  2. vaidate once the event is created and you click
     on it that the location is not shown as null

Change-Id: Ib2946f62fd570d4f8f9bd097e04630fce26e154c
Reviewed-on: https://gerrit.instructure.com/35261
Reviewed-by: Dave Jungst <dave@instructure.com>
QA-Review: Adam Phillipps <adam@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Jake Sorce <jake@instructure.com>
This commit is contained in:
Jake Sorce 2014-05-21 11:50:13 -06:00
parent 076e541cdb
commit 1bef256676
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ define [
if data.location_name
location_name = data.location_name
else
location_name = null
location_name = ''
params = {
'calendar_event[title]': data.title ? @event.title