There might be some database inconsistency. Did you compare data for approved and returned posts in database? Database base is good start point also do some debugging around line 611 kernel/classes/workflowtypes/event/ezapprove/ezapprovetype.php.
If still no luck then I suggests contact support[at]ez.no
Hi Kristof & Lukasz, thanks for your replies. I (kinda) solved this problem, with the help of Konrad, polish eZ superhero :)
Workflow.php execution was failing because the ezcollab_item.data_int2 pointed to non-existent object version (it contained value 1, but for that object [forum topic] only version 2 and 3 existed). ezcontentobject.current_version of that object also contained 1. So I changed data_int2 to 3, run the workflow.php again and it worked :)
I still don't know what caused this inconsistency :(
Hi Dario, data_int2 is an attribute of ezcollab_item table in eZ publish database. There are several tools you can use to connect to a database and alter data, for instance phpMyAdmin, which is probably allready installed on your web server.
my "ezcollab_item" table is made of 519 rows... how I could understand which rows have wrong version number? Do I have to compare with "ezcontentobjectcurrent_version" table? But you said in ezforum this last table reports too wrong data?
Or I could delete all rows in the ezcollab_item table?