ericferon / glpi-archibp

Business processes
GNU General Public License v2.0
0 stars 0 forks source link

Plugin archibp appears to cause issues with datainjection plugin #1

Closed derry43 closed 2 years ago

derry43 commented 2 years ago

GLPI version: 9.5.7 archibp version: 1.0.1 datainjection version: 2.9.0

After installing the archibp plugin 1.0.1 in GLPI 9.5.7 with the plugin is datainjection 2.9.0 also installed, this prevents myself (and others) from creating a datainjection mode as the Save button does not display. Disabling the archibp plugin fixes this issue.

Upon checking the log files, I find the following error:

*** Uncaught Exception Error: Class 'PluginArchibpTaskInjection' not found in C:\inetpub\wwwroot\glpi\plugins\datainjection\inc\injectiontype.class.php at line

Which seems to stem from the line ...

archibp/hook.php:   $INJECTABLE_TYPES['PluginArchibpTaskInjection'] = 'datainjection';

Archibp does not appear to define the PluginArchibpTaskInjection class, unlike the archisw plugin, which defines the similar purpose class, PluginArchiswSwcomponentInjection, in its own class file.

archisw/hook.php:   $INJECTABLE_TYPES['PluginArchiswSwcomponentInjection'] = 'datainjection';
archisw/inc/swcomponentinjection.class.php: * Class PluginArchiswSwcomponentInjection
archisw/inc/swcomponentinjection.class.php:class PluginArchiswSwcomponentInjection extends PluginArchiswSwcomponent
ericferon commented 2 years ago

Fixed with v1.0.4. K.r,