Problem/Motivation

Routing parameter 'type' in optional, so when route doesn't have this it defined the next warning is thrown:

Undefined index: type in Drupal\relaxed\ParamConverter\DocIdConverter->applies() (line 135 of modules/contrib/relaxed/src/ParamConverter/DocIdConverter.php). Drupal\relaxed\ParamConverter\DocIdConverter->applies(Array,      [notice]
'nid', Object) (Line: 61)
Undefined index: type in Drupal\relaxed\ParamConverter\DbConverter->applies() (line 61 of modules/contrib/relaxed/src/ParamConverter/DbConverter.php). Drupal\relaxed\ParamConverter\DbConverter->applies(Array,                [notice]
'nid', Object) (Line: 61)

Proposed resolution

Add this case handling to condition.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

l0ke created an issue. See original summary.

l0ke’s picture

Status: Active » Needs review
FileSize
1.09 KB

  • jeqq committed f7945a7 on 8.x-1.x authored by l0ke
    Issue #2926482 by l0ke, jeqq: Handle "Undefined index: type" in...
jeqq’s picture

Status: Needs review » Fixed

@l0ke Thank you!

Status: Fixed » Closed (fixed)

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