mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	#2992 set default style name when empty in AfterSet
This commit is contained in:
		| @@ -3,7 +3,7 @@ Gogs - Go Git Service [ | ||||
|  | ||||
| ##### Current version: 0.9.20 | ||||
| ##### Current version: 0.9.22 | ||||
|  | ||||
| | Web | UI  | Preview  | | ||||
| |:-------------:|:-------:|:-------:| | ||||
|   | ||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							| @@ -17,7 +17,7 @@ import ( | ||||
| 	"github.com/gogits/gogs/modules/setting" | ||||
| ) | ||||
|  | ||||
| const APP_VER = "0.9.20.0404" | ||||
| const APP_VER = "0.9.22.0422" | ||||
|  | ||||
| func init() { | ||||
| 	runtime.GOMAXPROCS(runtime.NumCPU()) | ||||
|   | ||||
| @@ -206,6 +206,10 @@ func (repo *Repository) AfterSet(colName string, _ xorm.Cell) { | ||||
| 		repo.NumOpenPulls = repo.NumPulls - repo.NumClosedPulls | ||||
| 	case "num_closed_milestones": | ||||
| 		repo.NumOpenMilestones = repo.NumMilestones - repo.NumClosedMilestones | ||||
| 	case "external_tracker_style": | ||||
| 		if len(repo.ExternalTrackerStyle) == 0 { | ||||
| 			repo.ExternalTrackerStyle = markdown.ISSUE_NAME_STYLE_NUMERIC | ||||
| 		} | ||||
| 	case "created_unix": | ||||
| 		repo.Created = time.Unix(repo.CreatedUnix, 0).Local() | ||||
| 	case "updated_unix": | ||||
|   | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1 +1 @@ | ||||
| 0.9.20.0404 | ||||
| 0.9.22.0422 | ||||
		Reference in New Issue
	
	Block a user