Ticket #4041 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Static Page Editor Crashes when page had different template

Reported by: af05v@… Owned by:
Priority: Customer Report Milestone: EPrints 3.3.9
Component: - Version:
Severity: normal Keywords:
Cc:

Description

If a static page uses an alternative template, then it crashes with the following in the browser:

EPrints System Error

Error. Template not loaded. Language: en Template ID: XML::LibXML::DocumentFragment?=SCALAR(0xb9360bc)

Change History

Changed 2 years ago by af05v@…

The following code in repository.pm makes it work (I acknowledge that this is a terrible way to fix this problem):

sub get_template_parts {

my( $self, $langid, $tempid ) = @_;

#Horrible fix for a nasty bug when editing static pages with non default templates. #af05v 20120413 if (ref $tempid eq 'XML::LibXML::DocumentFragment?') {

$tempid = EPrints::Utils::tree_to_utf8($tempid);

}

Changed 2 years ago by tdb01r

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

Resolved by r7629.

Note: See TracTickets for help on using tickets.