Skip to content

Commit

Permalink
fix(Tinebase): dosen´t load operator defineBy persistentfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Feitl committed Oct 7, 2024
1 parent 1d63775 commit 5ee0a01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Tinebase/js/widgets/grid/ForeignRecordFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,10 @@ Tine.widgets.grid.ForeignRecordFilter = Ext.extend(Tine.widgets.grid.FilterModel
this.operatorStore.each(function(r) {
var operator = r.get('operator'),
foreignRecordClass = operator.foreignRecordClass;

if (filter.foreignRecordDefinition.foreignRecordClass === operator.foreignRecordClass) {

if ((foreignRecordClass.getMeta('appName') === value.appName
&& foreignRecordClass.getMeta('modelName') === value.modelName)
|| (filter.foreignRecordDefinition.foreignRecordClass === operator.foreignRecordClass)) {
filter.formFields.operator.setValue(operator);
filter.foreignRecordDefinition = operator;
return false;
Expand Down

0 comments on commit 5ee0a01

Please sign in to comment.