[2.0.7] Saving required and allow multiple Select Box Link fails
A for , submitted by phoque on 06 February 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#223: [2.0.7] Saving required and allow multiple Select Box Link fails
Uhm… yes. This reaction doesn’t exactly surprise me.
There was a problem that prevented this issue from displaying. Thanks for the fix, we’ll look at getting it implemented ASAP.
“Allow Multiple” should not cause an array of data to get passed into the checkPostFieldData
function. Fields::checkPostFieldData()
only ever expects to get a string. If a field type expects to get an array of data, it should handle that by overloading the checkPostFieldData
function. I’ll need to look into why setting “Allow Multiple” would change what the function receives.
I am having no such problem using a basic section built with core fields. What fields are in your section? What does the form markup look like?
Discussed with team. There really isn’t a problem here, more a mis-understand as to how the function works.
Allow multiple will iterate over each group of field values, and process them as if it was a single entry.
Closing issue.
This issue is closed.
In symphony/lib/toolkit/class.field.php:288
In case a field is selected to allow multiple,
$data
is not a String but an Array. This meansMust be replaced by