Hi,

I have been using modr8 with slight modifications for a while now. As long as the traffic was low, everything was fine, but with increasing post frequency I noticed that there is something going wrong.

In short, upon submission and before processing the form the module reads from the database. IIf you are using the default sorting (newest first), nodes get duplicated, if you chenge the sorting, nodes that were not displayed have the default action executed.

This bug report is related to #194110: 2 Entries created in Moderation Log / Number of Posts in moderation block.

Comments

pwolanin’s picture

Any suggestions for how to approach the solution?

digi24’s picture

The error is not critical, it occurs only under certain conditions and if the default action is set to something other than "nothing".

Unfortunatelly I am not experienced with Form-API, but I am quite sure, that there is some conflict between the module preparing the form for input and the submit handler. (What I do not understand about Form-Api: is there a way to tell the form to submit it directly to a certain function/menu callback? I guess this would solve the problem)

pwolanin’s picture

One possible solution would be to put some hidden values into the form so we know for sure which loads were originally displayed.

Form API rebuilds the form on submission to validate the input is not hacked, so if the database has changed and that makes different nodes appear, things could get odd.