- 🇺🇸United States Jon Pugh Newburgh, NY
This breaks when trying to create new nodes with a reference field.
It's because there's no ID yet to pass.
I got it working by altering handleArgs:
- if (isset($this->configuration['entity_info'])) {
+ if (isset($this->configuration['entity_info']) && $this->configuration['entity_info']['id']) { The last submitted patch, 245: 1699378.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 10:41pm 27 January 2023 - 🇺🇸United States mariacha1
+++ b/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php @@ -8,14 +8,15 @@ -use Drupal\Core\StringTranslation\StringTranslationTrait;
This removal of the "use" statement is throwing an error for me, and it doesn't seem relevant to the rest of the code changes in this file. Maybe this was an accident?
Adding it back to 245 fixes it for me.
- 🇬🇧United Kingdom very_random_man
I recently came across this whilst recreating a D7 site (yay, token arguments) in D9 (booo, no token arguments). In case anyone is looking for a workaround for dynamic arguments to entity reference view displays whilst this issue gets resolved, you can specify the arguments in a form_alter like this:
$form['field_something']['widget'][0]['target_id']['#selection_settings']['view']['arguments'][0] = $arg_thingy;
- 🇺🇸United States SocialNicheGuru
This patch is causing this issue, 💬 Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::__construct(): Argument #8 ($token) must be of type Drupal\views\Plugin\EntityReferenceSelection\Token, Drupal\eca\Token\ContribToken given Closed: works as designed
- 🇺🇸United States SocialNicheGuru
Rerolled JonPugh #245 ✨ Allow tokens in entity reference views selection arguments Needs work for Drupal 9.5.9
- 🇺🇸United States SocialNicheGuru
in #245 and #252 this line is removed:
-use Drupal\Core\StringTranslation\StringTranslationTrait;I had to add this line back in. I had fatal error:
"PHP message: PHP Fatal error: Trait "Drupal\views\Plugin\EntityReferenceSelection\StringTranslationTrait" not found in /drupal9.5.9/html/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php on line 32 - last update
about 1 year ago 30,374 pass - last update
9 months ago Custom Commands Failed - last update
9 months ago Custom Commands Failed - last update
9 months ago Custom Commands Failed - Status changed to Needs review
8 months ago 5:41pm 5 November 2023 - 🇮🇳India ameymudras
Couldn't generate the interdiff, changes to fix the issue with above patch and compatibility
- last update
8 months ago 30,408 pass, 48 fail - Status changed to Needs work
8 months ago 6:30pm 8 November 2023 - 🇺🇸United States smustgrave
Seems to have test failures.
Also was previously tagged for tests and issue summary which appear to still be needed.
- last update
7 months ago 29,629 pass, 50 fail - last update
7 months ago 30,601 pass, 48 fail - 🇺🇸United States chucksimply
for 10.1.6, #247 failed. #254 applied and works as needed.
- 🇺🇸United States mariacha1
Here's a quick reroll. I D10 I was seeing errors about there being no value for "$element['#array_parents']" on regular node forms for any select or radio fields added directly to the top-level of the form. This updated patch just wraps the foreach that loops through array_parents in an if statement.
- last update
5 months ago Build Successful - last update
about 2 months ago Build Successful