Skip to content

[FIX] plugin PluginTrackerItemCopy : fix error implode(): Argument #2 () must be of type ?array, string given

This is to fix the errors error implode(): Argument #2 () must be of type ?array, string given and Fatal error rendering template file extends when trying to add the plugin PluginTrackerItemCopy using the plugin help tool on master. See the video below :

Click to expand CopyTrackerBug

Changes made: Makes sure arguments are passed properly to the implode function and ensures the separator is used as an array in case a string is given.

Notice: There's some weird behavior when opening the modal for the first time with the first 4 inputs(fields) display, but they display fine when I open the modal for the second time, without reloading the page. I still don’t know what the problem is.

See video below WeirdBehaviour
Edited by Sam Ndabo

Merge request reports