diff --git a/js/searchformforeignkeys.js b/js/searchformforeignkeys.js index 356ee6cda..97b0f8f4c 100644 --- a/js/searchformforeignkeys.js +++ b/js/searchformforeignkeys.js @@ -260,7 +260,8 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF $(this).parents('tr:first').remove(); // Remove the whole line, so that, next time the dialog gets displayed it's no longer there } ); - theMap["sFilter"] = $('#datatable_ResultsToAdd_'+me.id).DataTable().ajax.params().filter; + //fix + theMap["sFilter"] = $('#datatable_ResultsToAdd_'+me.id+' [name=filter]').val(); theMap["class"] = me.sTargetClass; theMap['operation'] = 'GetFullListForeignKeysFromSelection'; $('#busy_'+me.iInputId).html(' ');