You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to import Entry Versions using our Sprout Import plugin. The import is successful but the versions display in the incorrect order in the Entry Version dropdown.
If our understanding is correct, we believe this is because the getVersionsByEntryId is ordering by dateCreated and all the versions are imported with the same dateCreated value.
Updating orderBy to num in the getVersionsByEntyId method seems to fix the issue but it may be best if someone that understands the full Entry Versions workflow confirm this is a good solution:
FROM
->orderBy(['dateCreated' => SORT_DESC])
TO
->orderBy(['num' => SORT_DESC])
Steps to reproduce
Create multiple Entry Versions with the same dateCreated value
View Entries in the CP and see they are in the incorrect order
Additional info
Craft version: 3.0.7
PHP version: 7.1
Database driver & version: MySQL
Plugins & versions: Sprout Import
The text was updated successfully, but these errors were encountered:
Description
We are trying to import Entry Versions using our Sprout Import plugin. The import is successful but the versions display in the incorrect order in the Entry Version dropdown.
If our understanding is correct, we believe this is because the
getVersionsByEntryId
is ordering bydateCreated
and all the versions are imported with the samedateCreated
value.Updating orderBy to
num
in the getVersionsByEntyId method seems to fix the issue but it may be best if someone that understands the full Entry Versions workflow confirm this is a good solution:FROM
TO
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: