backend-plus 1.17.1 → 1.17.2
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.
- package/for-client/my-tables.js +2 -1
- package/lib/backend-plus.d.ts +1 -0
- package/package.json +1 -1
package/for-client/my-tables.js
CHANGED
|
@@ -2061,7 +2061,8 @@ myOwn.TableGrid.prototype.prepareGrid = function prepareGrid(){
|
|
|
2061
2061
|
}
|
|
2062
2062
|
grid.setInheritedFields = function(depot, filterFun){
|
|
2063
2063
|
var promiseArray = [];
|
|
2064
|
-
grid.def.foreignKeys.filter(filterFun||(x=>x))
|
|
2064
|
+
grid.def.foreignKeys.concat(grid.def.softForeignKeys).filter(filterFun||(x=>x))
|
|
2065
|
+
.filter(x=>!x.noInherit).forEach(function(fkDef){
|
|
2065
2066
|
var fixedFields = fkDef.fields.map(function(field){
|
|
2066
2067
|
return {fieldName: field.target, value: depot.row[field.source]};
|
|
2067
2068
|
})
|
package/lib/backend-plus.d.ts
CHANGED
|
@@ -238,6 +238,7 @@ export type ForeignKey = {
|
|
|
238
238
|
initiallyDeferred?:boolean
|
|
239
239
|
displayAfterFieldName?:string|boolean
|
|
240
240
|
forceDeferrable?:boolean
|
|
241
|
+
noInherit?:boolean
|
|
241
242
|
}
|
|
242
243
|
export type Constraint = {constraintType:string, consName?:string} & (
|
|
243
244
|
{constraintType:'unique', fields:string[], where?:string} |
|
package/package.json
CHANGED