From 297f78d315da565b875281a4794991d9db7f575d Mon Sep 17 00:00:00 2001 From: Arved Solth Date: Wed, 11 May 2022 13:38:12 +0200 Subject: [PATCH] Set PPN search field to 'visible' in MockDatabase --- Kitodo/src/test/java/org/kitodo/MockDatabase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kitodo/src/test/java/org/kitodo/MockDatabase.java b/Kitodo/src/test/java/org/kitodo/MockDatabase.java index 4d97724d3b8..ae32c37697f 100644 --- a/Kitodo/src/test/java/org/kitodo/MockDatabase.java +++ b/Kitodo/src/test/java/org/kitodo/MockDatabase.java @@ -1444,11 +1444,10 @@ public static void insertImportConfigurations() throws DAOException, DataExcepti SearchField ppnField = new SearchField(); ppnField.setValue("pica.ppn"); ppnField.setLabel("PPN"); + ppnField.setDisplayed(true); ppnField.setImportConfiguration(gbvConfiguration); gbvConfiguration.setSearchFields(Collections.singletonList(ppnField)); - ServiceManager.getImportConfigurationService().saveToDatabase(gbvConfiguration); - gbvConfiguration.setIdSearchField(gbvConfiguration.getSearchFields().get(0)); gbvConfiguration.setDefaultSearchField(gbvConfiguration.getSearchFields().get(0)); ServiceManager.getImportConfigurationService().saveToDatabase(gbvConfiguration);