Fixed issue
This commit is contained in:
parent
d61fbf77ef
commit
8d2ce659b3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue