mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							bae26421aa
						
					
				
				
					commit
					320c9817bc
				
			@@ -31,11 +31,6 @@ type Milestone struct {
 | 
				
			|||||||
	ClosedDateUnix util.TimeStamp
 | 
						ClosedDateUnix util.TimeStamp
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// BeforeInsert is invoked from XORM before inserting an object of this type.
 | 
					 | 
				
			||||||
func (m *Milestone) BeforeInsert() {
 | 
					 | 
				
			||||||
	m.DeadlineUnix = util.TimeStampNow()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// BeforeUpdate is invoked from XORM before updating this object.
 | 
					// BeforeUpdate is invoked from XORM before updating this object.
 | 
				
			||||||
func (m *Milestone) BeforeUpdate() {
 | 
					func (m *Milestone) BeforeUpdate() {
 | 
				
			||||||
	if m.NumIssues > 0 {
 | 
						if m.NumIssues > 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user