fix: delete attachment after remove comment.

This commit is contained in:
Bo-Yi Wu authored and Kim "BKC" Carlbäcker committed 2017-01-25 16:40:43 +01:00
1 parent 2831267db1
commit 691fbdf1d3
5 files changed
+11 -7

No files matched your search

+3 -1
View File
@@ -573,7 +573,7 @@ func (engine *Engine) Id(id interface{}) *Session {
return session.Id(id)
}
// ID mehtod provoide a condition as (id) = ?
// ID method provoide a condition as (id) = ?
func (engine *Engine) ID(id interface{}) *Session {
session := engine.NewSession()
session.IsAutoClose = true
@@ -1599,6 +1599,8 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T
return t
}
if tz != nil {
t = t.In(tz)
} else {
t = engine.TZTime(t)
}
switch sqlTypeName {