Bug #4556

Cannot make static method CommonDropdown::canCreate() non static in class PluginCustomfieldsDropdownsItem

Added by gaio over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:09/30/2013
Priority:NormalDue date:
Assignee:dethegeek% Done:

100%

Category:-
Target version:1.6.0

Description

Configuration -> dropdowns lead to blank page. I've found in apache error logs the rows:

[Mon Sep 30 11:06:42 2013] [error] [client 10.5.1.18] PHP Fatal error:  Cannot make static method CommonDropdown::canCreate() non static in class PluginCustomfieldsDropdownsItem in /usr/local/share/glpi/plugins/customfields/inc/dropdownsitem.class.php on line 140, referer: https://helpdesk.ct.lnf.it/plugins/appliances/front/appliance.php

Attached a proposed patch, but i'm not a PHP programmer so i don't know if i've make some mistake worster...

dropdownsitem.class.php.diff Magnifier (560 Bytes) gaio, 09/30/2013 04:19 PM

History

#1 Updated by dethegeek about 8 years ago

  • Assignee set to dethegeek
  • Target version set to 1.6.0
  • % Done changed from 0 to 100

Fixed (several weeks ago)

#2 Updated by dethegeek about 8 years ago

  • Status changed from New to Closed

Also available in: Atom PDF