mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Backport #27467 manually.
This commit is contained in:
		@@ -53,6 +53,10 @@ func ChangeTitle(ctx context.Context, issue *issues_model.Issue, doer *user_mode
 | 
				
			|||||||
	oldTitle := issue.Title
 | 
						oldTitle := issue.Title
 | 
				
			||||||
	issue.Title = title
 | 
						issue.Title = title
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if oldTitle == title {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if err = issues_model.ChangeIssueTitle(ctx, issue, doer, oldTitle); err != nil {
 | 
						if err = issues_model.ChangeIssueTitle(ctx, issue, doer, oldTitle); err != nil {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user