This commit is contained in:
Maxime Dagnicourt
2008-02-22 17:52:26 +00:00
parent 2766a276a7
commit dcc2ec31d8

View File

@@ -316,10 +316,12 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
public void removePreference(Integer article_id, String userLogin){
try{
ut.begin();
Preference pref = this.getPreferenceForUserAndArticle(article_id, userLogin);
em.remove(pref);
ut.commit();
} catch (Exception e) {
try{
ut.rollback();