Event "OnAfterItemUpdate" is called even, when nothing was changed in database

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Feb 11, 2010, 10:08:04 AM2/11/10
to In-Portal Bugs
Event "OnAfterItemUpdate" is called even, when nothing was changed in database. For example OnAfterItemDelete event is called only, when something was really deleted and OnAfterItemValidate is called only, when something was successfully validated.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry A.

unread,
Feb 11, 2010, 10:57:07 AM2/11/10
to In-Portal Bugs Team
Hi Alex,

Is it hard to fix / implement suggested approach or this is done
already?

Thanks.

Alexander Obuhovich

unread,
Feb 11, 2010, 11:15:18 AM2/11/10
to in-port...@googlegroups.com
Not hard at all, just move event call to "if", that checks if some records were updated and sets modifier flag.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry A.

unread,
Feb 11, 2010, 11:35:24 AM2/11/10
to In-Portal Bugs Team
Aren't this done on the lower level and not in the end classes?

If so are you able to provide a patch here?

DA.

On Feb 11, 10:15 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Not hard at all, just move event call to "if", that checks if some records
> were updated and sets modifier flag.
>
>
>
>
>
> On Thu, Feb 11, 2010 at 5:57 PM, Dmitry A. <dandre...@gmail.com> wrote:
> > Hi Alex,
>
> > Is it hard to fix / implement suggested approach or this is done
> > already?
>
> > Thanks.
>
> > On Feb 11, 9:08 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> > > Event "OnAfterItemUpdate" is called even, when nothing was changed in
> > > database. For example OnAfterItemDelete event is called only, when
> > something
> > > was really deleted and OnAfterItemValidate is called only, when something
> > > was successfully validated.
>
> > > --
> > > Best Regards,
>
> > >http://www.in-portal.comhttp://www.alex-time.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "In-Portal Bugs Team" group.
> > To post to this group, send email to in-port...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>

Alexander Obuhovich

unread,
Feb 11, 2010, 2:28:41 PM2/11/10
to in-port...@googlegroups.com
It looks, like kDBItem::Update method is something new for you. Here is the patch.



To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

onafteritemupdate_called_only_when_data_was_changed.patch

Alexander Obuhovich

unread,
Mar 14, 2010, 3:35:46 PM3/14/10
to in-port...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages