#136 ✓resolved
James

Image history > preview page returning an error when extended fields are present

Reported by James | December 12th, 2008 @ 09:56 AM | in 1.2

Description

When visiting a preview page (from item history) for an image when extended fields have been allocated the images content type, a error 500 is returned.

Steps to reproduce

  1. Allocate one or more extended fields to the image content type
  2. Create a new image item with two or more revisions
  3. Preview a revision via the History page for the item
  4. Notice the error returned

Stack trace


You have a nil object when you didn't expect it!
The error occurred while evaluating nil.content_type_to_field_mappings
Extracted source (around line #2):

1: <% cache_with_privacy(item, {:part => "secondary_content_extended_fields"}) do -%>
2: <% extended_fields_html = display_xml_attributes(item) -%>
3: <% if !extended_fields_html.blank? %>
4: <div class="secondary-content-section-wrapper">
5:   <div id="extended-fields" class="secondary-content-section">

Cheers,

James

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Pages