Last modified: 2011-07-07 07:54:13 UTC
When uploading a new version of a file the 'watch this page' check box is not
automatically checked if you are already watching the page already.
Created attachment 3478 [details]
(In reply to comment #1)
> Created an attachment (id=3478) 
> Proposed patch
Patch tested, but in consequence I expect that unchecking the 'watch this page'
check box the page will be unwatched after reupload. This doesn't happen with
That behavior would match editing behavior, so that's fine.
Or... do you mean it won't happen, but you would expect it to, so the patch is
It does not happen, the patch is incomplete.
Created attachment 4581 [details]
Patch that fixes this bug
This bug is based upon the previous patch but also acts upon an unchecked watch state.
Fixed in r30162.
Reverted in r30163.
A problem with this is that it *un*watches a previously watched image under the following circumstances:
* 'watch pages I edit' is not enabled (eg, default state)
* go to Special:Upload and select the file
* hit 'upload'
The initial check state is unchecked (since there was no initial destination name set), and this doesn't get updated to reflect the existing watch state of the previous image.
There are a couple possible ways around this. One is to compare the form's actual initial check state with the submitted check state and only apply an unwatch if there was a difference.
Another might be to do a watch state update via AJAX when a new destination filename is set in the form. This would allow the checkmark's default state to be set 'properly' for those with JS enabled in modern browsers.
Perhaps a combination should be used.
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*