Permalink
Browse files

Show "Untitled" in the header when editing an existing production wit…

…h no title.
  • Loading branch information...
1 parent c4ca806 commit 821595338a6c8ab5003293c1c46b90e67bf90b02 @cpojer cpojer committed Nov 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 JavaScript/Controller/Production.js
@@ -42,7 +42,7 @@ var createForm = function(options) {
baseURL: '/production/',
saveURL: 'productions',
getObjectName: function(object) {
- return object && object.metadata && object.metadata.title;
+ return (object ? ((object.metadata && object.metadata.title) || 'Untitled') : null);
},
onSave: function(object) {
productions[object.uuid] = object;

0 comments on commit 8215953

Please sign in to comment.