- πͺπΈSpain qpro Spain
Thanks for the patch.
Before apply the patch a I got the same error, but now I get this one:
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "title" of relation "node_field_data" violates not-null constraint DETAIL: Failing row contains (1048, 1960, platform_user, gl, 1, 1, null, 1678677378, 1678677378, 0, 0, 1, 1).: INSERT INTO "node_field_data" ("nid", "vid", "type", "langcode", "status", "uid", "title", "created", "changed", "promote", "sticky", "default_langcode", "revision_translation_affected") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12); Array ( )
Tested in:
- Drupal 9.5.4
- PHP 8.1.11
- PostgreSQL 14.7)
- Webform 6.2.0-beta5
- Webform Content Creator 3.0.0-alpha2 - π΅πΉPortugal joaomarques736
Hello BetoAveiga and qpro,
Could you please provide more details (yml configurations for testing would be helpful) in order to reproduce this error?
Thanks!
- Status changed to Postponed: needs info
over 1 year ago 2:59pm 12 May 2023 - πΊπΈUnited States Topplestack Rural, Idaho
I can reproduce this by adding a section element and various form elements inside the section element. The module doesn't seem to know what to do with the section element.
- πͺπΈSpain qpro Spain
I have tested it with diferent elements (fields, sections, etc..) on webforms. In my case the problem is only with "name" field, no with sections.
To recreate it:
1) create a webform with a "name" element, select checkboxes for "name" and "surname" and save it
2) go to Webform Content Create menu, and add a configuration where the name field in webform maps to title in content
3) fill the webform and send it, then check /admin/reports/dblogTest in:
webform: 6.2.0-beta5
webform content creator: 4.0.4 (neither alpha version nor patches this time) - π¬π§United Kingdom harrick
The patch can no longer be applied to webform_content_creator 4.0.4 due to the patched code being on a different line. It's now on line 109 of /src/WebformContentCreatorUtilities.php. I'll be happy to make a new patch though will be in a few days.
- π©πͺGermany mhdev90 Apolda
I'm not 100% sure, but i think this problem occurs only when you use the "webform_section" layout element. So the solution is pretty simple, just add the "webform_section" element type to the "$layoutElements" array. Maybe there are more elements that need to be added to this array?
Steps to reproduce it:
1. Create a webform
2. Add a section (webform_section) element
3. Add a text element to the sectionVersions:
drupal: 9.5.9
webform: 6.1.4
webform_content_creator: 2.x - π¨πΏCzech Republic Petr Illek
Petr Illek β made their first commit to this issueβs fork.
- last update
12 months ago 1 pass - π¨πΏCzech Republic Petr Illek
Hi,
I run into the issue as well. According to my finding it is indeed the issue with webform layout elements (webform_section).
I did not realized this issue was marked with version 2.x, so my MR is branched from that version.
Will switch over to Version 4.x (as that seems to be the one currently maintained) and will post the MR once again (if that is possible). - last update
12 months ago 1 pass - Status changed to Needs review
12 months ago 2:15pm 27 December 2023 - last update
12 months ago 1 pass - last update
12 months ago 1 pass - last update
12 months ago 1 pass - Status changed to RTBC
8 months ago 9:53pm 27 April 2024 - π¨π¦Canada floydm
MR in comment #14 tested on v4.0.4. It fixes the issue.
- Status changed to Fixed
8 months ago 10:34pm 29 April 2024 - π΅πΉPortugal joaomarques736
Hello Petr Illek , thanks for your help, I already committed your change and it will go in the next release.
Best regards.
- Status changed to Fixed
8 months ago 11:04pm 29 April 2024