backend-plus 2.2.1 → 2.2.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.
@@ -448,7 +448,7 @@ myOwn.TableConnectorLocal = function(context, opts){
448
448
  connector.pick = connector.opts.pick;
449
449
  connector.hideBecauseRelated = {};
450
450
  connector.fixedFields.forEach(function(pair){
451
- if(!pair.range && pair.value != myOwn.skipInFixedFields){
451
+ if(!pair.range && !pair.until && pair.value != myOwn.skipInFixedFields){
452
452
  connector.fixedField[pair.fieldName] = pair.value;
453
453
  if (!pair.show) {
454
454
  connector.hideBecauseRelated[pair.fieldName] = true;
@@ -1192,6 +1192,9 @@ myOwn.DetailColumnGrid.prototype.td = function td(depot, iColumn, tr){
1192
1192
  if(pair.range){
1193
1193
  fieldCondition.range=pair.range;
1194
1194
  }
1195
+ if(pair.until){
1196
+ fieldCondition.until=pair.until;
1197
+ }
1195
1198
  return fieldCondition;
1196
1199
  });
1197
1200
  }
@@ -2249,7 +2252,7 @@ myOwn.TableGrid.prototype.createRowInsertElements = function createRowInsertElem
2249
2252
  var depotForInsert = grid.createDepotFromRow({$allow:{delete:true, update:true}}, 'new');
2250
2253
  grid.connector.fixedFields.forEach(function(pair){
2251
2254
  var fieldDef = grid.def.field[pair.fieldName];
2252
- if(!pair.range && (fieldDef.inTable !== false || fieldDef.isPk && pair.value !=null)){
2255
+ if(!pair.range && !pair.until && (fieldDef.inTable !== false || fieldDef.isPk && pair.value !=null)){
2253
2256
  depotForInsert.row[pair.fieldName] = pair.value;
2254
2257
  depotForInsert.rowPendingForUpdate[pair.fieldName] = pair.value;
2255
2258
  }
@@ -2360,7 +2363,7 @@ myOwn.TableGrid.prototype.displayGrid = function displayGrid(){
2360
2363
  return (specialMandatories[fieldDef.name] || fieldDef.nullable!==true && fieldDef.isPk || fieldDef.nullable===false)
2361
2364
  && depot.row[fieldDef.name]==null
2362
2365
  && (grid.connector.fixedFields.find(function(pair){
2363
- return !pair.range && pair.fieldName===fieldDef.name
2366
+ return !pair.range && !pair.until && pair.fieldName===fieldDef.name
2364
2367
  })||{}).value == null
2365
2368
  }
2366
2369
  //var cual=grid.def.fields.filter(mandatoryOmitted)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",