zotero/test
Dan Stillman 9ba3745b94 Don't clear md5/mtime in item JSON if skipped in patch mode
The client skips synced storage properties (md5, mtime) when uploading items to
ZFS-enabled libraries, but since the API returns JSON with those values
included after writes, they do get saved to the sync cache. If the local
attachment is then modified and the client generates a diff from the cached
version with those properties skipped, they'll be included in the patch JSON as
empty strings in order to clear them. This changes Zotero.Item::toJSON() to
skip those properties in patch mode as well.

This fixes a sync error ("Cannot change 'md5' directly in group library") when
a group attachment is updated locally.
2016-08-15 04:38:04 -04:00
..
components Increase default test timeout to 10 seconds on Travis 2016-04-26 02:43:44 -04:00
content Merge branch '4.0' 2016-08-09 01:52:21 -04:00
resource Gzip-compress API uploads larger than 1000 characters 2016-03-28 02:38:28 -04:00
tests Don't clear md5/mtime in item JSON if skipped in patch mode 2016-08-15 04:38:04 -04:00
chrome.manifest Unit testing infrastructure 2015-03-07 16:34:55 -05:00
install.rdf Update maxVersion 2015-10-29 03:57:08 -04:00
runtests.sh Merge branch '4.0' 2016-08-14 17:27:36 -04:00