Problem/Motivation

 Notice: Undefined index: property in Drupal\google_api_client\Plugin\EntityReferenceSelection\GoogleApiClientSelection->buildEntityQuery() (line 26 of modules/contrib/google_api_client/src/Plugin/EntityReferenceSelection/GoogleApiClientSelection.php).
Drupal\google_api_client\Plugin\EntityReferenceSelection\GoogleApiClientSelection->buildEntityQuery(NULL, 'CONTAINS') (Line: 340)
Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection->getReferenceableEntities() (Line: 618)
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->getSettableOptions(Object) (Line: 116)
Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsWidgetBase->getOptions(Object) (Line: 34)
Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsSelectWidget->formElement(Object, 0, Array, Array, Object) (Line: 353)
Drupal\Core\Field\WidgetBase->formSingleElement(Object, 0, Array, Array, Object) (Line: 92)
Drupal\Core\Field\WidgetBase->form(Object, Array, Object) (Line: 181)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object, Array, Object) (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('team_sync_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 716)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
 

Steps to reproduce

* Place an Entity Reference field in an entity type, with target to a "Google API Client"
* Shoe Entity form of that entity type

Proposed resolution

Fix src/Plugin/EntityReferenceSelection/GoogleApiClientSelection.php:26

Remaining tasks

* Provide patch / Merge Request

User interface changes

* none

API changes

* none

Data model changes

* none

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

derhasi created an issue. See original summary.

derhasi’s picture

Status: Active » Needs review
derhasi’s picture

derhasi’s picture

sadashiv made their first commit to this issue’s fork.

  • sadashiv committed 87f784a on 8.x-4.x authored by derhasi
    Issue #3223505 by derhasi: Undefined index: property in Drupal\...
sadashiv’s picture

Status: Needs review » Fixed

Thanks for the fix, will be rolled out in next release

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.