xingzai 1 an în urmă
părinte
comite
63c63865b0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      controllers/report_selection.go

+ 1 - 1
controllers/report_selection.go

@@ -37,7 +37,7 @@ func (this *ReportSelectionController) Detail() {
 	//uid := user.UserId
 	articleId, _ := this.GetInt("ArticleId")
 	isBestNew, _ := this.GetBool("IsBestNew")
-	if articleId == 0 {
+	if articleId == 0 || isBestNew {
 		isBestNew = true
 		if isBestNew {
 			tbdb := "cygx_report_selection"