Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperTable fields don't get filled in under certain conditions. #1392

Open
anvart opened this issue Dec 14, 2023 · 0 comments
Open

SuperTable fields don't get filled in under certain conditions. #1392

anvart opened this issue Dec 14, 2023 · 0 comments
Labels

Comments

@anvart
Copy link

anvart commented Dec 14, 2023

Description

I've got a section with SuperTalbe field which has all kind of (text, lightswitches, datetime, entry) non-mandatory sub-fields. This condition (took me some time to spot):

if ((is_string($value) && !empty($value)) || (is_array($value) && !empty(array_filter($value)))) {
ignores things like Carbon\Carbon So if there are only Date fields in a ST row, it won't get filled in.

Steps to reproduce

  1. Create a section with a SuperTable field which would only contain DateTime sub field(s)
  2. FeedMe it with anything
  3. Get no rows

Additional info

  • Craft version: 3.9.6
  • PHP version: 8.1.x
  • Plugins & versions: FeedMe 4.8.0
@anvart anvart added the bug label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant