ivamp / glpi_simcard_0_84

GNU General Public License v2.0
3 stars 0 forks source link

Problem between GLPI_SIMCARD_0_84 and Data Injection Plugin #1

Closed nealeydee closed 10 years ago

nealeydee commented 10 years ago

When trying to import SIMCard data with the Data Injection Plugin, it fails trying to add a new record rather than update an existing record.

PHP Notice: Undefined index: PluginSimcardSimcardInjection in C:\inetpub\wwwroot\glpi\plugins\datainjection\inc\commoninjectionlib.class.php at line 234 PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\glpi\plugins\datainjection\inc\commoninjectionlib.class.php at line 234 PHP Notice: Undefined index: PluginSimcardSimcardInjection in C:\inetpub\wwwroot\glpi\plugins\datainjection\inc\commoninjectionlib.class.php at line 1711 PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\glpi\plugins\datainjection\inc\commoninjectionlib.class.php at line 1711 PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\glpi\inc\dbmysql.class.php at line 252

Seems there is an indefined index. I believe that simcardinjection.class.php needs to be updated to reflect updates to the Data Injection plugin for version 0.84

ivamp commented 10 years ago

I don't use data injection and i don't know this problem when i modify code. But your issue is good and i work for patching it. I think release new version next week ;)

ivamp commented 10 years ago

But you can add manually the profile simcard ;)

dethegeek commented 10 years ago

Hi

I solved the bug related to data injection plugin. This should work for you too. Can you go to my fork of the plugin, test the branch datainjection in a test environment and report back ?

This branch also has a new field (type) which may be useful (at least for me).

Thank you