Ticket #367 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Removing cover image causes error

Reported by: tarmo Owned by: jukka
Priority: critical Milestone:
Component: generic Version:
Keywords: Cc:
Time planned: 2h Time remaining: 0h
Time spent: 1.0h


Removing a cover image from an Activity causes Featured activities to break (if it tries to show that Activity) with

TypeError: string indices must be integers
URL: file:LeMill/skins/lemill/lemill_activities_view.pt
Line 17, Column 24
Expression: standard:'piccy/absolute_url'

And this error probably occurs in all sections.

Change History

comment:1 Changed 13 years ago by jukka

How do you remove a cover image? I can't find a way from member interface. If it is manually removed from zmi, then 'hasCoverImage'-property has also to be toggled off.

comment:2 Changed 13 years ago by tarmo

At least resources used to have the cover image widget in their metadata page, which allowed removing the cover image. That functionality should be moved to a separate "change cover image" form, which may have the same problem (if removing a cover image is allowed at all - which the default image widget does allow).

comment:3 Changed 13 years ago by jukka

  • Owner changed from anonymous to jukka
  • Status changed from new to assigned
  • Time planned set to 2h

I'll try to add safe delete button.

comment:4 Changed 13 years ago by jukka

  • Status changed from assigned to closed
  • Time spent set to 1.0h
  • Resolution set to fixed
  • Time remaining set to 0h

(In [426]) Fixed #367, spent 1h. There is a delete button now in page where coverimages are uploaded or changed. It works.

Note: See TracTickets for help on using tickets.