[SOLVED] API issue with item_updated event
|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?