mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
remove parent tag after tag deletion
This commit is contained in:
parent
77311f42cd
commit
2b6a14a348
@ -130,6 +130,10 @@ public class TagDao {
|
||||
q.setParameter("tagId", tagId);
|
||||
q.setParameter("dateNow", dateNow);
|
||||
q.executeUpdate();
|
||||
|
||||
q = em.createQuery("update Tag t set t.parentId = null where t.parentId = :tagId and t.deleteDate is null");
|
||||
q.setParameter("tagId", tagId);
|
||||
q.executeUpdate();
|
||||
|
||||
// Create audit log
|
||||
AuditLogUtil.create(tagDb, AuditLogType.DELETE, userId);
|
||||
|
Loading…
Reference in New Issue
Block a user