domain_settings_form_submit with eu_cookie_compliance module - domain_id undefined

Created on 1 November 2022, over 2 years ago
Updated 1 May 2025, 17 days ago

Drupal Version

7

Domain module version

7.x-2.19

Expected Behavior

Expected to be able to delete a cookie category with the eu_cookie_compliance module. On deleting category the domain module fails to update the domain settings in the database as no domain_id was passed to

Actual Behavior

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'domain_id' cannot be null: INSERT INTO {domain_conf} ...

Issue caused as domain_settings_form_submit() tries to fetch domain_id from $form_state['values'], but the value actually exists in $form_state['input']

Patch suggested is to use an if statement to check for the value in both the 'values' and 'input' arrays

πŸ› Bug report
Status

Closed: outdated

Version

2.19

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jonnyToomey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024