Verified Commit d3c16635 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Fix(simplePlugin): ForeignKeyCheck method

ForeignKeyCheck methods contains fixes in case passed
values are arrays.
Showing with 5 additions and 0 deletions
+5 -0
......@@ -2063,6 +2063,11 @@ class simplePlugin implements SimpleTab
*/
function foreignKeyCheck (string $field, $value, array $source)
{
// In case of SetAttribute, value is an array needing to be changed to string.
if (is_array($value)) {
$value = $value[0];
}
return $this->attributesAccess[$field]->foreignKeyCheck($value, $source);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment