During node preview, if you delete an attachement, the total at the end of the list of attachments won't be updated and you will still see the old number (and size of course) of files your node had before deletion.

This is due to a misplaced sum of files which count attchment even if there status is deleted, see patch.

CommentFileSizeAuthor
#1 attachment_1.patch405 bytestostinni
attachment_0.patch405 bytestostinni

Comments

tostinni’s picture

StatusFileSize
new405 bytes

Ups, I inverted both files : correct patch here.

ccourtne’s picture

Status: Needs review » Fixed

Patch applied thanks!

ccourtne’s picture

Status: Fixed » Closed (fixed)