Browse Source

fixed initDbo with arrays

tags/v0.3.4
Robin Thoni 7 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
                     if (model == null) {
66
                     if (model == null) {
67
                         return null;
67
                         return null;
68
                     }
68
                     }
69
-                    var dbo = DataAccess.extendDeep({}, DataAccess.defaultDbo, model);
69
+                    var dbo = DataAccess.extendDeep({}, angular.copy(DataAccess.defaultDbo), model);
70
                     dbo.createdAt = luUtilsDataAccess.stringToMomentDateTime(dbo.createdAt);
70
                     dbo.createdAt = luUtilsDataAccess.stringToMomentDateTime(dbo.createdAt);
71
                     dbo.updatedAt = luUtilsDataAccess.stringToMomentDateTime(dbo.updatedAt);
71
                     dbo.updatedAt = luUtilsDataAccess.stringToMomentDateTime(dbo.updatedAt);
72
                     return dbo;
72
                     return dbo;

Loading…
Cancel
Save