             sectionNameKeyPath: nil,
             cacheName: nil
         )
-
+        originalFetchRequestPredicate = fetchRequest.predicate
         fetchedResultsController.delegate = self
         reloadData()
     }

private extension CrudViewController {

    func resetSearch() {
        fetchedResultsController.fetchRequest.predicate = nil
        reloadData()
    }


    private var hideAddItemRow = false
    private var tableUpdates: [String: [IndexPath]]?
    private var crudName: String!
    private var originalFetchRequestPredicate: NSPredicate?
    var logger: LogController?

    init(fetchRequest: NSFetchRequest<NSFetchRequestResult>, context: NSManagedObjectContext, crudDelegate: CrudViewControllerCRUDDelegate, tableViewDelegate: CrudViewControllerUITableViewDelegate, searchDelegate: CrudViewControllerSearchDelegate, name: String? = nil) {
