Help - Search - Members - Calendar
Full Version: Overwrite Entry Body When Deleting Comments
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
mwarden
There is a possibility of overwriting an entry's body when deleting one of its comments.

The particular clickstream I had was:

1. Click on a comment in the "Five Most Recent Comments" box in the admin section of MT.
2. Click "Delete" and "Delete" again when the confirmation window pops up.
3. The page is then redirected to the entry edit page and WHAMMO, the body of the entry is replaced with the body of the comment that was just deleted.

If you then click "Save" for some reason, your body is overwritten in the database.

Seems like a form field name clash (i.e. the "body" field in the comment delete page gets posted to the entry page and then shows up as the "body" field value on the entry page).

Note that at #3 up there, the body isn't *actually* replaced yet in the database, it just looks that way on the form field. The actual overwriting occurs when one then clicks "Save."

This has bit me once because I wanted to delete a spam comment. I deleted it, and wished to then rebuild, and I hit "Save" instead of "Rebuild"
LisaJill
this has been reported fairly often as a bug in safari, here's an
example.

If you do a search on safari you'll see a lot of these =/
TxFx.net
I can't replicate that problem using the click sequence you described. What version of MT are you running? Any hacks? Are you running some sort of form-filling program that may be autofilling stuff in?
TxFx.net
Ah... beat me to it smile.gif Form filling program... thought that might be it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.