craftcms / craftcms/webhooks

Date fields blank in the payload

Open
#58 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
84
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Description

I have several date fields in my data model, and I'm noticing they are empty when reviewing my payload data. All of these fields have values. All other field data is coming across as expected. I am working with the User sender class.

Steps to reproduce
  1. Set up User data model w/ custom fields, and configure webhoook
  2. Create new user with all field data entered.
  3. Review payload in activity area of plugin
Additional info
  • Craft CMS version: 3.7.13
  • Webhooks version: 2.4.1
  • PHP version: 7.4.2
  • Database driver & version: MySQL 5.7.26

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the User sender class, custom date fields, and a webhook, then inspect the payload in the plugin activity area. Compare the blank date fields with the other populated fields; the work is done when User payloads include the entered date values.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.