Fixed issue

This commit is contained in:
Luca Frosini 2022-05-10 16:49:08 +02:00
parent d61fbf77ef
commit 8d2ce659b3
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class GrsfPublisherStockService {
// check it is in the right source and it is a stock
String type = stockInCkan.getExtrasAsHashMap().get(Constants.DOMAIN_CUSTOM_KEY);
if((stockInCkan.getOrganization().getName().equalsIgnoreCase(source)
|| stockInCkan.getOrganization().getName().toLowerCase().contains(source))
|| stockInCkan.getOrganization().getName().toLowerCase().startsWith(source.toLowerCase()))
&& Product_Type.STOCK.getOrigName().equals(type)) {
logger.debug("Ok, this is a stock of the right type, removing it");