Skip to content

Commit

Permalink
Re #410 - Fixed tag deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
wjboogerd committed Oct 14, 2013
1 parent 44afe4d commit a4b5e19
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
import eu.europeana.corelib.definitions.solr.entity.Aggregation;
import eu.europeana.corelib.definitions.solr.entity.Proxy;
import eu.europeana.corelib.solr.exceptions.MongoDBException;

import eu.europeana.corelib.solr.exceptions.SolrTypeException;

import eu.europeana.corelib.solr.service.SearchService;

/**
Expand Down Expand Up @@ -347,7 +344,7 @@ public void removeSocialTag(Long userId, Long socialTagId)
public void removeSocialTag(Long userId, String europeanaId, String tag) throws DatabaseException {
List<SocialTag> results = null;
if (StringUtils.isNotBlank(europeanaId) && StringUtils.isNotBlank(tag)) {
results = getDao().findByNamedQuery(SocialTag.class, SocialTag.QUERY_FINDBY_USER_TAG, userId, StringUtils.lowerCase(tag), europeanaId);
results = getDao().findByNamedQuery(SocialTag.class, SocialTag.QUERY_FINDBY_USER_TAG_EUROPEANAID, userId, StringUtils.lowerCase(tag), europeanaId);

} else if (StringUtils.isNotBlank(tag)) {
results = findSocialTagsByTag(userId, tag);
Expand Down

0 comments on commit a4b5e19

Please sign in to comment.