- 🇺🇸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
almost 2 years 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
over 1 year ago 30,374 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - Status changed to Needs review
about 1 year 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
about 1 year ago 30,408 pass, 48 fail - Status changed to Needs work
about 1 year 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
12 months ago 29,629 pass, 50 fail - last update
12 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
10 months ago Build Successful - last update
6 months ago Build Successful - 🇺🇸United States SocialNicheGuru
Is Drupal 10.3 version available? The MR does not seem to apply
- First commit to issue fork.
- Merge request !9935Rerolled patch #262 and created MR for 11.x branch. → (Open) created by mrinalini9
- 🇮🇳India mrinalini9 New Delhi
Hi,
I have rerolled patch #262 and created MR for the 11.x branch, please review it.
Thanks!
- 🇺🇸United States smustgrave
Still needs tests and proper issue summary. Please look at the tags before putting into review
- 🇬🇧United Kingdom jonathanshaw Stroud, UK
I'm not sure if #214 was ever dealt with
- 🇺🇸United States el1_1el
#260 applied for me on Drupal 10.3.7 and
#262 did not
thanks @socialnicheguru - 🇨🇦Canada vincent signoret
#260 applied for me on Drupal 10.3.7 and
#262 did not
thanks @socialnicheguruSame for me on 10.3.8
Thank you