mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 Fixed error when using API to search for tags
refs a457631a20
- `defaultColumnsToFetch` was moved to the CRUD plugin in the referenced
commit, which makes it a function on `this` instead of `this.prototype`
- this means the function doesn't exist and Admin throws an error when
you start typing in the search bar because the API 500s
- this commit switches it to `this.defaultColumnsToFetch()`
This commit is contained in:
parent
13adff145c
commit
188de00489
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ module.exports = function (Bookshelf) {
|
|||
// and append default columns to fetch
|
||||
if (options.columns) {
|
||||
options.columns = _.intersection(options.columns, this.prototype.permittedAttributes());
|
||||
options.columns = _.union(options.columns, this.prototype.defaultColumnsToFetch());
|
||||
options.columns = _.union(options.columns, this.defaultColumnsToFetch());
|
||||
}
|
||||
|
||||
if (options.order) {
|
||||
|
|
Loading…
Add table
Reference in a new issue