Closed (fixed)
Project:
Rabbit Hole
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2017 at 16:41 UTC
Updated:
4 Oct 2020 at 08:24 UTC
Jump to comment: Most recent
tl;dr: When saving a node type form Rabbit Hole's form altering will cause additional garbage variables to be saved to the DB that are not used anywhere.
When editing a node type:
rh_node alters the node type form and calls rabbit_hole_form().rabbit_hole_form() adds several fieldsets without #tree = TRUE. Child elements will therefore have their values added to the form root.rabbit_hole_form() adds multiple #value elements to the form to pass along internal values. These are:rh_moduleredirect_setting_namenode_type_form_submit() will take any excess values from the root level, suffix their names with the node type name and save the resulting key as variable. This produces two garbage variables per node type that are never requested or reused.
Comments
Comment #3
matroskeenNice catch!
The fix was applied to 7.x-2.x.
Thanks!