- Issue created by @sakshi@17
- 🇮🇳India sakshi@17
Nodes with the long titles are not allowed in Bulk scheduling entity_autocomplete field type.
- 🇮🇳India sakshi@17
Ignore patch in comment #3 . It contains extra code.
Here is the correct patch. I validated the Bulk operation and confirm that it is working as expected now. - Issue was unassigned.
- Merge request !38Issue #3531335 by sakshi@17, vitaliyb98: Bulk scheduling is giving error → (Open) created by Unnamed author
- 🇺🇦Ukraine vitaliyb98
Investigated this error and found that it does not occur in Drupal 11.3. However, the addStatus method expects a string or a MarkupInterface object, whereas in our case, an array is being passed. Even if it works now, there is no guarantee that it will continue to work in the future, since addStatus does not expect an array.
/** * Adds a new status message to the queue. * * @param string|\Drupal\Component\Render\MarkupInterface $message * The translated message to be displayed to the user. For consistency with * other messages, it should begin with a capital letter and end with a * period. * @param bool $repeat * (optional) If this is FALSE and the message is already set, then the * message won't be repeated. Defaults to FALSE. * * @return $this */ public function addStatus($message, $repeat = FALSE);
Although it works in Drupal 11.3, the code should be updated to match the addStatus method definition. I applied the patch from #5, but replaced the deprecated renderPlain with renderInIsolation.