This commit is contained in:
@@ -316,10 +316,12 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
|
|||||||
|
|
||||||
public void removePreference(Integer article_id, String userLogin){
|
public void removePreference(Integer article_id, String userLogin){
|
||||||
try{
|
try{
|
||||||
|
|
||||||
ut.begin();
|
ut.begin();
|
||||||
Preference pref = this.getPreferenceForUserAndArticle(article_id, userLogin);
|
Preference pref = this.getPreferenceForUserAndArticle(article_id, userLogin);
|
||||||
em.remove(pref);
|
em.remove(pref);
|
||||||
ut.commit();
|
ut.commit();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
try{
|
try{
|
||||||
ut.rollback();
|
ut.rollback();
|
||||||
|
|||||||
Reference in New Issue
Block a user