remult 0.27.23 → 0.27.24-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -578,10 +578,12 @@ export class RepositoryImplementation {
|
|
|
578
578
|
return result;
|
|
579
579
|
}
|
|
580
580
|
async _buildEntityDataProviderFindOptions(options) {
|
|
581
|
+
options = { ...options };
|
|
581
582
|
let opt = {};
|
|
582
583
|
opt = {};
|
|
583
584
|
if (!options.orderBy || Object.keys(options.orderBy).length === 0) {
|
|
584
|
-
|
|
585
|
+
if (!this._dataProvider.isProxy)
|
|
586
|
+
options.orderBy = this._info.entityInfo.defaultOrderBy;
|
|
585
587
|
}
|
|
586
588
|
opt.where = await this._translateWhereToFilter(options.where);
|
|
587
589
|
if (options.orderBy !== undefined)
|
|
@@ -1511,7 +1513,8 @@ export class rowHelperImplementation extends rowHelperBase {
|
|
|
1511
1513
|
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
1512
1514
|
const element = d[key];
|
|
1513
1515
|
if (this.fields.find(key).valueChanged() &&
|
|
1514
|
-
!ignoreKeys.includes(key)
|
|
1516
|
+
!ignoreKeys.includes(key) &&
|
|
1517
|
+
element !== undefined) {
|
|
1515
1518
|
changesOnly[key] = element;
|
|
1516
1519
|
wasChanged = true;
|
|
1517
1520
|
}
|
package/package.json
CHANGED
|
@@ -946,10 +946,12 @@ var RepositoryImplementation = /** @class */ (function () {
|
|
|
946
946
|
return tslib_1.__generator(this, function (_b) {
|
|
947
947
|
switch (_b.label) {
|
|
948
948
|
case 0:
|
|
949
|
+
options = tslib_1.__assign({}, options);
|
|
949
950
|
opt = {};
|
|
950
951
|
opt = {};
|
|
951
952
|
if (!options.orderBy || Object.keys(options.orderBy).length === 0) {
|
|
952
|
-
|
|
953
|
+
if (!this._dataProvider.isProxy)
|
|
954
|
+
options.orderBy = this._info.entityInfo.defaultOrderBy;
|
|
953
955
|
}
|
|
954
956
|
_a = opt;
|
|
955
957
|
return [4 /*yield*/, this._translateWhereToFilter(options.where)];
|
|
@@ -2494,7 +2496,8 @@ var rowHelperImplementation = /** @class */ (function (_super) {
|
|
|
2494
2496
|
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
2495
2497
|
element = d[key];
|
|
2496
2498
|
if (this.fields.find(key).valueChanged() &&
|
|
2497
|
-
!ignoreKeys.includes(key)
|
|
2499
|
+
!ignoreKeys.includes(key) &&
|
|
2500
|
+
element !== undefined) {
|
|
2498
2501
|
changesOnly[key] = element;
|
|
2499
2502
|
wasChanged = true;
|
|
2500
2503
|
}
|