sugarcrm/sugarcrm_dev — pull request #111 by eggsurplus (2012-07-26 16:51:25+00:00)
Title: Update ModuleInstall/ModuleInstaller.php

Removed hashToFile from install_copy as the file is not put into the session upon install. Uninstall, disable, enable do use the session hash still so those require hashToFile. Verified install, disable, enable, uninstall all work after this change.

Without the fix the module 'copy' backup will not be made to the correct '-restore' directory. It will backup to the root directory and not to the [zip name]+'-restore' directory in upload/upgrades/module. Since all files in the manifest.php copy index are not being backed up an uninstall will not restore those files to the previous state. Since those files get removed from the system it will cause missing files.