JSON Datasource gives strange "Invalid sort field" error


(Nic Hubbard) #1

I am using the JSON Datasource, and while setting it up works fine, trying to list the shadow assets in an asset listing give me the following error:

10:25:22 - 06 Oct
User: Nicholas Hubbard (121)
Level: MySource Error(/core/assets/data_source/data_source/data_source.inc:305) - Invalid sort field for the asset type Data Source Record Set

It also stops rendering the layout of the asset listing, so the page is completely broken.

 

Running on 4.16.2.


(Benjamin Pearson) #2

What is the sort field you are using? I think (from having a quick look at the code) the sort field can only be standard asset properties like name, created datetime etc. I’m not 100% sure tho without playing around with the asset.


(Nic Hubbard) #3

Ah, the asset listing sort field. Yeah, I should have thought of that. That is the issue.