Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
rest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2020 at 06:02 UTC
Updated:
10 Aug 2024 at 12:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shetpooja04 commentedCommit ID: 871da5e4
Link: https://git.drupalcode.org/project/drupal/-/commit/871da5e4f723b5b1928956c495a0f148e4cbbaff
File: core/modules/rest/src/Routing/ResourceRoutes.php Line: 93
For Issue: https://www.drupal.org/project/drupal/issues/2308745 the variable is added but not used
Please review
Comment #3
Pooja Ganjage commentedHi,
@shetpooja04, I have reviewed your patch and you seems to put all && conditions together.
I am creating updated patch.
Please review this patch.
Let me know for any recommendations.
Thanks.
Comment #4
naresh_bavaskar@Pooja Ganjage (#3 patch)
if condition was added in incorrect way, #2 patch looks to me
Thanks
Comment #5
chaithanya.m commentedI have reviewed the Patch #2. The variable $supported_formats is never getting used in ResourceRoutes.php It is working fine without this variable.
Comment #8
catchCommitted a5c9c32 and pushed to 9.1.x. Thanks!
Comment #17
quietone commentedClosed earlier issue #3157984: Unused variables in Rest module as a duplicate and adding credit.