Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292913

DateList: Allow initialization with an empty date

$
0
0

In my setup with commerce 2.0 using a birthday field in the user profile payment method where the value is NULL by intention, it throws the following error (only the first time - recalling with ajax - thus changing the payment method brings it up, the value is somehow set).
Non ajax will lead to a permanent error (maybe reloading the initialized form helps ..)

Argument 1 passed to Drupal\Component\Datetime\DateTimePlus::createFromArray() must be of the type array, null given, called in /.../web/core/lib/Drupal/Core/Datetime/Element/Datelist.php on line 65

This can be fixed with a simple NULL check.


Viewing all articles
Browse latest Browse all 292913

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>