pluginsGLPI / order

Order plugin for GLPI
GNU General Public License v3.0
39 stars 44 forks source link

Free references bug #300

Closed nldrsm closed 2 years ago

nldrsm commented 2 years ago

Hello,

I have an issue with free references, when i select " Add the reference " and i choose the type, i am automaticaly redirect on the home page.

debug mode show this message : PHP Notice (8): Undefined index: name in /var/www/html/glpi10/marketplace/order/inc/order_item.class.php at line 492 and PHP Notice (8): Undefined index: reference_code in /var/www/html/glpi10/marketplace/order/inc/order_item.class.php at line 589 image

With GLPI 9.5 and GLPI 10 Thanks for your help

jcervantes-sipecom commented 2 years ago

Same here, with GLPI 9.5.7 and plugin 2.7.5 downloaded from marketplace:

When selected "Add the Reference", and Element Type another that the default, per example Devices, the page reload, but cannot add the Reference.

image

jcervantes-sipecom commented 2 years ago

@nldrsm you know? I find this line, in the order/inc/order_item.class.php at 557 line number:

'ajax_page' => Plugin::getWebDir('order') . '//ajax/referencespecifications.php',

I deleted the double slash, leaving it just:

'ajax_page' => Plugin::getWebDir('order') . '/ajax/referencespecifications.php',

And now the page doesn't reload anymore, and I can Add new references:

image

I haven't test it the complete process.

cedric-anne commented 2 years ago

Hi,

Fix has been published in version 2.7.6 (for GLPI 9.5) and 2.8.0-r3 (for GLPI 10.0).

Regards