Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remembering previously entered values (auto-fill) (#2882)
* Pass last-saved instance into JR from FormLoaderTask * Refactor a few related FileUtils * Update last-saved instance on save * Pass last-saved src from InstanceGoogleSheetsUploader also * Move LAST_SAVED_FILENAME to FileUtils * Make form MEDIA_SUFFIX a constant * Factor out getLastSavedSrcIfExists util * Rename old occurrences of form fileName => basename * Update one other occurrence of -media string * Make MEDIA_SUFFIX private to FormUtils * Make LAST_SAVED_PATH private to FormUtils * Remove temporary variable * Make sure dirs exist before trying to write * Always create last-saved.xml if it doesn't exist * Ensure last-saved.xml is deleted for encrypted forms It will always be deleted on save if finalized, along with the rest of the plaintext files. Because of this, InstanceSyncTask doesn't need to delete it (nor does it even know of its existence because it's in a separate directory) so it just passes in `null`.
- Loading branch information
1 parent
ea35ea2
commit ab0e320
Showing
9 changed files
with
104 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters