Fix download
Merge pull request #1195 from nlegoff/fix-download-report

[3.8.6] Fix report sql queries for downloads
Fix sql downloads
Merge pull request #1196 from nlegoff/fixtests

[3.8.6] Fix report sql queries for downloads
Fix date edit for record
Allows to add attachments to a mail
add comments
add test
nop
Merge pull request #1199 from jygaulier/MailAttachments

Mail attachments
Merge pull request #1198 from nlegoff/phras-349

[3.8.6] Fix edition date for record
Fix missing argument in rename_all_metadata function
Merge pull request #1201 from nlegoff/fix-rename-metdata

[3.8.6] Fix missing argument in rename_all_metadata function
Fix flickr
Merge pull request #1205 from nlegoff/bridge

[3.8.6] Fix flickr uploading
Merge branch '3.8'

Conflicts:
	composer.json
	composer.lock
	lib/Alchemy/Phrasea/Controller/Prod/Edit.php
	lib/Alchemy/Phrasea/Controller/Report/Activity.php
	lib/classes/caption/field.php
	lib/classes/module/report/activity.php
	lib/classes/module/report/download.php
	lib/classes/task/period/apibridge.php