mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	#1854 change issueId to issueIndex
This commit is contained in:
		@@ -138,8 +138,8 @@ func (a Action) GetIssueInfos() []string {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (a Action) GetIssueTitle() string {
 | 
			
		||||
	issueID := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
 | 
			
		||||
	issue, err := GetIssueByID(issueID)
 | 
			
		||||
	issueIndex := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
 | 
			
		||||
	issue, err := GetIssueByIndex(a.RepoID, issueIndex)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Error(4, "GetIssueByID: %v", err)
 | 
			
		||||
		return "500 when get title"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user