cinsiyet eklenior
This commit is contained in:
parent
fedb90754c
commit
35ec03156e
|
|
@ -214,7 +214,7 @@ func getCats(db *gorm.DB, catIDs []int) ([]gm.Category, string, error) {
|
|||
var categories []gm.Category
|
||||
var keywords string
|
||||
|
||||
if errCat := db.Preload("Translations").Find(&categories, catIDs).Error; errCat != nil {
|
||||
if errCat := db.Preload("Translations", "locale=?", "tm").Find(&categories, catIDs).Error; errCat != nil {
|
||||
log.Println(errCat)
|
||||
return categories, keywords, errCat
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue