You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2011-02-24 14:25:40

Jan.pieters
Member
Registered: 2009-07-27
Posts: 20

"Click to authorize the loan" not visible

I recently installed version 0.78.2 and experience the following behaviour:
deviced that were added to glpi and were available for reservation, before the reservation, are looking ok with respect to reservations (buttons to allow reservation of not are visible)

BUT: devices that were not available toreservations, or newly added reservation, we do not find any button anymore to activate the reservations for this device

Does anyone know if there is a change of handling since last update. or is this a bug ? I can not find any info concerning this in the manual

Thanks for helping !

Offline

#2 2011-03-22 13:17:24

Jan.pieters
Member
Registered: 2009-07-27
Posts: 20

Re: "Click to authorize the loan" not visible

Is there someone that can help me ???
I just installed version 0.78.3 and I have stille the same problem ..  sad

Offline

#3 2011-03-22 13:50:43

scmi
Member
From: Germany
Registered: 2009-02-10
Posts: 80

Re: "Click to authorize the loan" not visible

Under Inventory\ e.g. Monitors\ I've a tab 'Reservation'  there Reserve an item
'authorize revations'


glpi 0.78.3


Prod GLPI: 9.4.1.1 / Apache 2.4.25 (Debian) /PHP 7.0.30/ Server Software: Debian 9.1/Server Version: 10.1.26-MariaDB-0+deb9u1

Offline

#4 2011-03-22 13:58:38

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: "Click to authorize the loan" not visible

To have the button Authorize reservations, you must have right Write in the field Administration of reservations  in your profil


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2011-03-22 18:23:11

Jan.pieters
Member
Registered: 2009-07-27
Posts: 20

Re: "Click to authorize the loan" not visible

Yes, i've done this before in earlier versions of GLPI ( btw the setting is still correct). but when I pushed the button to allow the loan, nothing happened...

****

in the meantime I found that there was an error in the SQL-statement that was sent to the DB:

I detected with a query analyser that the statement, GLPI generates, was

INSERT INTO `glpi_reservationitems` (`items_id`,`itemtype`,`entities_id`,`is_recursive`,`is_active`) VALUES ('20','Peripheral','0','','1')

I launched this in the mySQL.exe, with result:

ERROR 1366 (HY000): Incorrect integer value: '' for column 'is_recursive' at row 1

so I found that the field is_recursive was not well defined.

for having a quick solution, i changed the file reservationitem.class.php, line 207:
original : echo "<input type='hidden' name='is_recursive' value='".$item->isRecursive()."'>";
new: echo "<input type='hidden' name='is_recursive' value='0'>";

I don't think this is a good solution from a development point of view, but now it works.

Offline

Board footer

Powered by FluxBB