Browse Source

fixed initDbo with arrays

tags/v0.3.4
Robin Thoni 8 years ago
parent
commit
35ef66f665
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/DataAccess/lu-webapi-crud-dataaccess.js

+ 1
- 1
src/DataAccess/lu-webapi-crud-dataaccess.js View File

@@ -66,7 +66,7 @@
66 66
                     if (model == null) {
67 67
                         return null;
68 68
                     }
69
-                    var dbo = DataAccess.extendDeep({}, DataAccess.defaultDbo, model);
69
+                    var dbo = DataAccess.extendDeep({}, angular.copy(DataAccess.defaultDbo), model);
70 70
                     dbo.createdAt = luUtilsDataAccess.stringToMomentDateTime(dbo.createdAt);
71 71
                     dbo.updatedAt = luUtilsDataAccess.stringToMomentDateTime(dbo.updatedAt);
72 72
                     return dbo;

Loading…
Cancel
Save