Skip to content
Snippets Groups Projects
Commit 01175628 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3345579: Fix Drupal 10 error with Entityqueue Form Widget in node...

Issue #3345579: Fix Drupal 10 error with Entityqueue Form Widget in node add/edit forms for Entity queries must explicitly set whether the query should be access checked or not
parent 543a2e31
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,9 @@ function entityqueue_form_widget_form_node_form_submit($form, FormStateInterface
/* Add entity to all checked queues */
$eqs_machine_names = array_keys($values['entityqueues'], "1");
foreach ($eqs_machine_names as $eqs_machine_name) {
$query = \Drupal::entityQuery('entity_subqueue')->condition('name', $eqs_machine_name);
$query = \Drupal::entityQuery('entity_subqueue')
->accessCheck()
->condition('name', $eqs_machine_name);
$result = $query->execute();
$subqueues = EntitySubqueue::loadMultiple($result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment