[SOLVED] API issue with item_updated event
|
rWatcher
![]()
Joined: 2005-09-06
Posts: 619 |
Posted: Wed, 2009-09-30 19:46
|
|
I'm trying to debug an issue with my KeepOriginal module. It seems that, when run against both Beta 3 and git, if the file path is changed (either by editing the file name of the photo, or by editing a parent album's file name) the file path of the "original" image is not changed accordingly. After doing some digging, it looks to me that the old and new versions of the modified $item that are passed into the item_updated event are both the same (or at least both the old and new copies of the item have the newer title and file path). In Beta 2, the the photos update function had a line of code to clone the original before updating it (line 81) but I don't see anything similar to that in the current code. Is this new behavior intended, or is this a bug? |
|


Posts: 7934
That's a bug.
If you would please file it in Trac Tim or I'll take care of it ASAP.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 619
Thanks! I've filed a ticket here:
http://sourceforge.net/apps/trac/gallery/ticket/826