Ticket #1415 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Undeleting object attachments fails

Reported by: rambo Assigned to: rambo
Priority: blocker Milestone: 8.09.7 Ragnaroek
Component: MidCOM core Version: 8.09 Ragnaroek
Keywords: Cc:

Description

Fatal error: Call to a member function get() on a non-object in /usr/share/php/midcom/lib/midcom/baseclasses/core/dbobject.php on line 865

The problem is using $this->_l10n in a static method...

$_MIDCOM->uimessages->add($this->_l10n->get('midgard.admin.asgard'), sprintf($this->_l10n->get('attachment %s undeleted'), $att->name, midcom_application::get_error_string()), 'ok');

Change History

10/29/09 09:24:41 changed by rambo

(In [23800]) use superglobal for accessing translations in startic method, refs #1415

10/29/09 10:51:42 changed by rambo

  • status changed from new to closed.
  • resolution set to fixed.