- 🇮🇪Ireland lostcarpark
I'd like to incorporate this fix into the module, but going forward I would like to see test coverage for bug fixes and new features where possible.
I'd welcome any thoughts on what a test for this would look like.
There are two errors that keep happening on the ScheduledPublishWidget FieldWidget.
One happens when you have Scheduled Publish working on an Inline Entity Form:
The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\entity_browser\Form\EntityBrowserForm::getEntity() in Drupal\scheduled_publish\Plugin\Field\FieldWidget\ScheduledPublishWidget->formElement() (line 37 of modules/contrib/scheduled_publish/src/Plugin/Field/FieldWidget/ScheduledPublishWidget.php).
And the other is happening with Views Bulk Operations:
The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\views_bulk_operations\Form\ConfigureAction::getEntity() in Drupal\scheduled_publish\Plugin\Field\FieldWidget\ScheduledPublishWidget->formElement() (line 37 of modules/contrib/scheduled_publish/src/Plugin/Field/FieldWidget/ScheduledPublishWidget.php).
It's the same error.
IEF:
VBO:
Address the error.
I thought the patch in https://www.drupal.org/project/scheduled_publish/issues/3171296 🐛 Call to a member function getTypePlugin() on null in Drupal\scheduled_publish\Plugin\Field\FieldWidget\ScheduledPublishWidget->formElement() Needs work would fix it but it did not.
Needs work
3.9
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'd like to incorporate this fix into the module, but going forward I would like to see test coverage for bug fixes and new features where possible.
I'd welcome any thoughts on what a test for this would look like.