diff --git a/internal/models/monthlyNews.go b/internal/models/monthlyNews.go index 5a7ce8e9c1ca8c2960fc5c180817846e91e2eede..638df1c08975cb7cd271339776c1ba0365b9f2d2 100644 --- a/internal/models/monthlyNews.go +++ b/internal/models/monthlyNews.go @@ -90,7 +90,7 @@ func (dh *DataHandler) SaveMonthlyNews(w http.ResponseWriter, r *http.Request) { err = dh.db.Where("year = ? AND month = ?", monthlyNews.Year, monthlyNews.Month).First(&MonthlyNews{}).Error // Default title - if monthlyNews.Title == "" { + if monthlyNews.Title == "" && monthlyNews.Content != "" { monthlyNews.Title = "Les nouveautés du service" }