MDL-49750 mod_data: fix updating file/picture fields breaks references
authorJohannes Burk <me@jojoob.de>
Thu, 25 Jun 2015 14:45:51 +0000 (16:45 +0200)
committerJohannes Burk <me@jojoob.de>
Mon, 5 Oct 2015 09:42:53 +0000 (11:42 +0200)
commit8c3b27d4b24aa5a573b0d581b1aa2bdb2763ed38
tree4e1dc71882cd0df7ce4b5945ad42cb380f138ec4
parent35d3e8b00b3e1d11249b47a8626238b9a762a7be
MDL-49750 mod_data: fix updating file/picture fields breaks references

Use file_save_draft_area_files on file/picture update and
set content to null if file was removed.
mod/data/field/file/field.class.php
mod/data/field/picture/field.class.php