amici-infotech / craft-super-dynamic-fields

Other
3 stars 0 forks source link

[BUG] Multi-select in admin panel view #1

Closed belkin closed 4 years ago

belkin commented 4 years ago

Hi,

I have a Multi-select field and everything is working fine until you add this field in panel view: image image

Then you get 500 error if you try to view this section or user group. In the network tab I'm getting more details over de error: http://local.hisk.edu/index.php?p=admin/actions/element-indexes/get-elements&v=1601971401500 {"error":"An exception has been thrown during the rendering of a template (\"Array to stringconversion\")."}`

I found the reason but unable to fix complete: On vendor/amici/craft-super-dynamic-fields/src/base/FieldSettings.php, line 274. I have added above the return this code: if (\Craft::$app->getRequest()->getIsCpRequest()) { return implode(", ", $return); } And it seemed to be working fine except new data were unable to be saved in that field.

amici-infotech commented 4 years ago

Hey @belkin I have solved the issue. Can you please upgrade SDF plugin and confirm this?

belkin commented 4 years ago

Yes, thanks for the fast response and fix! :)