[FIX] ZM 1.24.2: Unarchive button in events list page

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

[FIX] ZM 1.24.2: Unarchive button in events list page

Post by mastertheknife »

How to reproduce:
1) Archive an event
2) Go to the events page (e.g. click on one of columns in console page)
3) Mark that event and click unarchive. The event will remain archived.
NOTE: Unarchive from the event page works, but not from events list page.

In file skins/classic/views/js/events.js, edit line 138 (May vary from installation to installation)
Change it from:

Code: Select all

function unArchiveEvents( element, name )
To:

Code: Select all

function unarchiveEvents( element, name )

Firefox and the firebug extension can be really useful for finding such bugs :)
mastertheknife.
jeramiah1945
Posts: 6
Joined: Tue Feb 01, 2011 6:45 am
Location: California

unarchive

Post by jeramiah1945 »

This was exactly what I was looking for. Thanks!
redxiii
Posts: 48
Joined: Thu Aug 05, 2010 1:47 am

Re: [FIX] ZM 1.24.2: Unarchive button in events list page

Post by redxiii »

after editing the line 138 in events.js and opening the archived events lists window again, it was still using the old events.js. closing and re-opening the events list didn't help. i had to open the events list and then reload that window in order for the new events.js to be downloaded.
steffan
Posts: 11
Joined: Sun Apr 17, 2011 6:50 pm

Re: [FIX] ZM 1.24.2: Unarchive button in events list page

Post by steffan »

Thanks man !. works like it should now ! :)
Post Reply