Problem/Motivation

I noticed that when the configuration of the module is saved, Some extra values are also saved in the configuration with a null value.
It is because in the configuration form submit handler, Values are saved using the loop. So the default hidden fields will also be saved.
For example

twilio_callback_container: null
actions: null
form_build_id: form-G-EIQPFWO2eYjLMyCWm6skwLrAidpeY7Pq_dK2Urq1c
form_token: BgIbQIiy3scVJdcwHkwDpVxtJsOYDrIY0cR1XyNoThU
form_id: twilio_admin_form

Steps to reproduce

Proposed resolution

Skip unnecessary fields to be saved in the configuration.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork twilio-3379015

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

keshav.k created an issue. See original summary.

keshavv’s picture

Issue summary: View changes
keshavv’s picture

Title: Remove unnecessary configuration form fields while saving form. » Skip form's default hidden fields to be stored in the configuration
Status: Active » Needs review

Fixed the issue and created MR.
Please review.

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

shashank5563’s picture

@keshavv, this is available in 8.x-3.x-dev branch.

shashank5563’s picture

Status: Needs review » Fixed
shashank5563’s picture

Status: Fixed » Closed (fixed)