Updating page gives "new page created" message in river (patch included)
|Reported by:||edfactor||Owned by:|
When you update a page, the river says you created a new one. There are two things needed to fix this:
- The page that gets the form submission (currently) just calls add_to_river with the create setting no matter what you do. So you need to check to see if it's create or update and make different calls. (this is the file: mod/pages/actions/pages/edit.php)
- The page that actually does the update (mod/pages/views/default/river/object/page/update.php) doesn't work. My guess is that it hasn't worked in a while. If you look at the create.php page next to it in that directory, you see the changes from when they both had the same logic. The fix is to copy create.php to update.php and change the two instances of the word to "update" from "create".
I did both of these changes and it works fine now.
I have included a diff file against Rev. 29 in svn and attached the diff