backdrop-contrib / paragraphs

Paragraphs module to control your content flow
https://backdropcms.org/project/paragraphs
GNU General Public License v2.0
5 stars 11 forks source link

Scheduled publication doesn't work with paragraphs #33

Closed laryn closed 5 years ago

laryn commented 5 years ago

Cron gave this error when trying to publish a node that has paragraphs:

Error: Call to undefined function entity_revision_load() in paragraphs_item_revision_load() (line 60 of /path/modules/paragraphs/paragraphs.module).

docwilmot commented 5 years ago

To get rid of the error we could just copy and rename entity_revision_load() from D7 Entity API, as it looks simple. But dont know if that would fix scheduled publication. Worth a try.

laryn commented 5 years ago

While generally not a fan of just duplicating functions in potentially a bunch of different modules/places, this is a pretty small function. I left a note so that if entity_revision_load gets into core or if I add a future dependency on Entity Plus, I can be reminded to revert this. (And some of the other entity_revision_ functions that were already duplicated)

Thanks!