> If you go to the edit plugin screen (the screen where you can upload an updated zip) and just hit the "Update" button at the bottom (without even uploading a new zip), the update() function will fire.
This is what I am staying, update does not seem to fire when doing
this. I think it should. If you edit the plugin.cfc for Slatwall add a
cfabort to the update event you will see if only gets executed when
adding a zip and then updating. if you were to just update nothing
happends for me.
If this is not the case for you then something else must be wrong for
me.
On Jan 16, 9:27 pm, Tony Garcia <
t...@dreamlabsmedia.com> wrote:
> I think this is by design. You don't actually have to update or install
> with a new zip for the update to fire. If you go to the edit plugin
> screen (the screen where you can upload an updated zip) and just hit the
> "Update" button at the bottom (without even uploading a new zip), the
> update() function will fire. I learned this last year when I went to a;> Mura
training and I've gotten into the habit of doing this whenever I
> changed anypluginnconfigg settings.
>
> -Tony
>
> On 1/16/11 4:13 PM, Glyn Jackson wrote:
>
> > I noticed something when working with thepluginncfcc today.
>
> > It seems the 'on update' function from thepluginncfcc only gets called
> > when adding a new zip file. However if you edit a plug-in and change a
> > setting, the word 'update' is confusion. It makes me think the 'on
> > update' function would be called again, but not the case.
>
> > This does not giveSlatwalll issues when actually updating or
> > installing etc, however if a user decides to change their ORM
> > preference when not uploading a zip, it will not get executed,becuasee
> > the 'on update' function is not called.
>
> > My question is.....
>
> > Was this behaviour BR decided on, or a bug? Personally I think this
> > function should get called on any update of thepluginn, even if it's
> > just an update to a setting in theconfiggxmll by a user. Otherwise the
> >pluginn does not have a chance to respond to any changes the user has