backend-plus 1.16.21 → 1.16.22
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 -2
- package/lib/backend-plus.d.ts +1 -0
- package/package.json +1 -1
package/for-client/my-tables.js
CHANGED
|
@@ -2056,10 +2056,10 @@ myOwn.TableGrid.prototype.prepareGrid = function prepareGrid(){
|
|
|
2056
2056
|
if (referencedRow && foreignFieldName in referencedRow) {
|
|
2057
2057
|
var lookupValue = referencedRow[foreignFieldName];
|
|
2058
2058
|
var fieldName = fieldDef.name;
|
|
2059
|
-
depot.row[fieldName]
|
|
2060
|
-
if(fieldDef.inherited){
|
|
2059
|
+
if(fieldDef.inherited && !sameValue(depot.row[fieldName], lookupValue)){
|
|
2061
2060
|
depot.rowPendingForUpdate[fieldName] = lookupValue;
|
|
2062
2061
|
}
|
|
2062
|
+
depot.row[fieldName]=lookupValue;
|
|
2063
2063
|
if(depot.rowControls[fieldName]){
|
|
2064
2064
|
depot.rowControls[fieldName].setTypedValue(lookupValue);
|
|
2065
2065
|
}
|
package/lib/backend-plus.d.ts
CHANGED
|
@@ -302,6 +302,7 @@ export type TableDefinition = EditableDbDefinition & {
|
|
|
302
302
|
description?:MarkdownDoc
|
|
303
303
|
exportJsonFieldAsColumns?:string
|
|
304
304
|
importCuidado?:boolean
|
|
305
|
+
specialValidator?:string
|
|
305
306
|
}
|
|
306
307
|
export interface DetailTable { table?: string, fields: FieldsForConnectDetailTable, abr: string, label?: string, refreshParent?:boolean, refreshFromParent?:boolean, wScreen?:string, condition?:string }
|
|
307
308
|
export type TableDefinitionFunction = (context: ContextForDump, opts?:any) => TableDefinition;
|
package/package.json
CHANGED