You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within barrelstrength\sproutbase\models\sproutfields\Phone, the __toString method is trying to return $this->international, which is set to NULL when the field is empty.
Changing this line to return (string)$this->international; appears to resolve the issue.
Thank you for this plugin by the way, it looks really useful!
The text was updated successfully, but these errors were encountered:
I have added Sprout Fields' phone field to the User field layout, and it is set as not required.
When I save the user when the field is populated with a value, it works.
When the field is not populated with a value, I get an exception thrown:
Stack trace:
Within
barrelstrength\sproutbase\models\sproutfields\Phone
, the__toString
method is trying to return$this->international
, which is set toNULL
when the field is empty.Changing this line to
return (string)$this->international;
appears to resolve the issue.Thank you for this plugin by the way, it looks really useful!
The text was updated successfully, but these errors were encountered: