You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce (which actions have you made) :
Go to "Tools" > "Printer counters".
Click on "Record models".
Select the record model from HP Laserjet M551 printer
Set "Enable toner level" to "Yes".
Goto "Assets" > "Printers".
Click on HP Laserjet M551 printer
Expected result :
It should show the cartridge name and the percentage bar with the specific cartridge color, as below:
Actual result :
But it's actually return Hex-STRING values and the progress bar has no color at all:
It happens because the getTonerData() function doesn't handle Hex-STRING values and HP Laserjet M551 printer return the cartridge type ('black', etc.) and name as Hex-STRINGS. I sent a Pull Request with a possible fix.
Version of the plugin : 1.7.0
Version of your GLPI : 9.5.2
Steps to reproduce (which actions have you made) :
Go to "Tools" > "Printer counters".
Click on "Record models".
Select the record model from HP Laserjet M551 printer
Set "Enable toner level" to "Yes".
Goto "Assets" > "Printers".
Click on HP Laserjet M551 printer
It should show the cartridge name and the percentage bar with the specific cartridge color, as below:
But it's actually return Hex-STRING values and the progress bar has no color at all:
It happens because the getTonerData() function doesn't handle Hex-STRING values and HP Laserjet M551 printer return the cartridge type ('black', etc.) and name as Hex-STRINGS. I sent a Pull Request with a possible fix.
The text was updated successfully, but these errors were encountered: