[Create] Add specificity to check
Explicitly check if an object has a persistence timestamp at all (avoids false-positives due to falsiness of zero.)
This commit is contained in:
@@ -118,7 +118,7 @@ define(
|
||||
function doSave() {
|
||||
//This is a new 'virtual object' that has not been persisted
|
||||
// yet.
|
||||
if (!domainObject.getModel().persisted){
|
||||
if (domainObject.getModel().persisted === undefined){
|
||||
return getParent(domainObject)
|
||||
.then(doWizardSave)
|
||||
.then(getParent)
|
||||
|
||||
Reference in New Issue
Block a user