mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 22:07:56 +01:00
remove parent tag after tag deletion
This commit is contained in:
parent
77311f42cd
commit
2b6a14a348
@ -131,6 +131,10 @@ public class TagDao {
|
|||||||
q.setParameter("dateNow", dateNow);
|
q.setParameter("dateNow", dateNow);
|
||||||
q.executeUpdate();
|
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
|
// Create audit log
|
||||||
AuditLogUtil.create(tagDb, AuditLogType.DELETE, userId);
|
AuditLogUtil.create(tagDb, AuditLogType.DELETE, userId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user