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.
@@ -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]=lookupValue;
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
  }
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for typed controls",
4
- "version": "1.16.21",
4
+ "version": "1.16.22",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",