mirror of
https://github.com/tips-of-mine/GLPI-Plugin-SOC-Case-Management.git
synced 2025-06-28 05:38:42 +02:00
Fix: Remove unknown 'classname' attribute in PluginSocProfile registration
The 'classname' attribute was causing a warning during plugin installation as it's not a recognized option in the Plugin::registerClass method for this type of class. This commit removes the unnecessary attribute, relying on the standard behavior where the class name is inferred from the first argument.
This commit is contained in:
@ -76,7 +76,7 @@ function plugin_init_soc() {
|
|||||||
|
|
||||||
// Register plugin classes
|
// Register plugin classes
|
||||||
Plugin::registerClass('PluginSocCase');
|
Plugin::registerClass('PluginSocCase');
|
||||||
Plugin::registerClass('PluginSocProfile', ['classname' => 'PluginSocProfile']);
|
Plugin::registerClass('PluginSocProfile');
|
||||||
|
|
||||||
// Add menu items
|
// Add menu items
|
||||||
if (Session::haveRight('plugin_soc_case', READ)) {
|
if (Session::haveRight('plugin_soc_case', READ)) {
|
||||||
|
Reference in New Issue
Block a user