Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #53 from umco/develop
Browse files Browse the repository at this point in the history
Preparing v2.0.4 release
  • Loading branch information
leekelleher authored May 10, 2019
2 parents 24202b0 + 3aa17ff commit bab4edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2017

# version format
version: 2.0.3.{build}
version: 2.0.4.{build}

# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ angular.module("umbraco").factory("innerContentService", [
}
};

var isPrimitive = function (test) {
return (test !== Object(test));
};

self.populateName = function (itm, idx, contentTypes) {

var contentType = _.find(contentTypes, function (itm2) {
Expand Down Expand Up @@ -532,7 +536,7 @@ angular.module("umbraco").factory("innerContentService", [
for (var p = 0; p < tab.properties.length; p++) {
var prop = tab.properties[p];
if (dbModel.hasOwnProperty(prop.alias)) {
prop.value = dbModel[prop.alias];
prop.value = isPrimitive(dbModel[prop.alias]) ? dbModel[prop.alias] : angular.copy(dbModel[prop.alias]);
}
}
}
Expand Down

0 comments on commit bab4edb

Please sign in to comment.