Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Symphony warning when datetime field is both required and empty/invalid #2303
I have a required DateTime field with date ranges enabled.
When content is submitted through a frontend form, the following error is returned if both start and end values are missing/invalid:
I've had a quick look and think I can roughly figure out what's happening - it appears the datetime values being tested are 2D arrays, so although array_reduce is used on line 86, trim is still acting upon an array (one-dimensional), hence the error. At least that's what I think is going on.
p.s. I've hacked together a workaround for now, but can't quite figure out a proper solution. My PHP is quite limited...