sb2g14 / soton_3D_print

3 stars 0 forks source link

Detail page for signed out printers can't be viewed (on live website) #113

Closed GHLasse closed 6 years ago

GHLasse commented 6 years ago

The details page for signed out printers raises an error. http://3dprint.clients.soton.ac.uk/issues/show/25 and http://3dprint.clients.soton.ac.uk/issues/show/27 cause a 'trying to get property of non-object' error. It seems the check $printer->printer_status !== 'Signed out' doesn't work as intended. Signed out is not an issue...

sb2g14 commented 6 years ago

The problem was with signed out printers. They don't have issues. Adding on more line in if statement for current issue fixed the bug