correct the name of the editors-xtd group plugins class
editors-xtd group plugins class name must have a (plgButton<PluginName>) structure, but JCB creates the names of these classes with (plg<PluginGroup><PluginName>) structure, which makes this type of plugins not work
This commit is contained in:
@ -6622,7 +6622,22 @@ abstract class ComponentbuilderHelper
|
||||
return array_values($fieldIds);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* create plugin class name
|
||||
*/
|
||||
public static function createPluginClassName($group, $code_name)
|
||||
{
|
||||
// editors-xtd group plugins must have a class with plgButton<PluginName> structure
|
||||
if ($group == 'editors-xtd')
|
||||
$group= 'Button';
|
||||
|
||||
return 'Plg' . ucfirst($group) . ucfirst(
|
||||
$code_name
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* get an admin view fields IDs
|
||||
|
Reference in New Issue
Block a user