hugolib: Use the interface value when doing Related search

Currently it makes no practical difference, but this is more a protection if we in the future creates index from the content related fields. That will not work from a shortcode.

See #5071
This commit is contained in:
Bjørn Erik Pedersen 2018-08-14 18:19:45 +02:00
parent 0dd06bdac0
commit a6f199f7a6
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func (p Pages) RelatedIndices(doc related.Document, indices ...interface{}) (Pag
return nil, err
}
result, err := p.searchDoc(page, indicesStr...)
result, err := p.searchDoc(doc, indicesStr...)
if err != nil {
return nil, err
}