Pull request for #1043

there was a change in CKAN 2.2 and the metadata_modified is saved
outside of the main saving function