CI to automate build of zotero tarball for zotero aport https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/testing/zotero
Find a file
Dan Stillman 3be8abeae2 Fix broken creator autocomplete if place becomes a base field
Well this was a wild one to debug.

Creator fields were only initialized for autocomplete due to a series of
>10-year-old bugs:

1) In `showEditor()`, `Zotero.ItemFields.isAutocompleteField(fieldName)`
   was called for creator fields, which would pass, e.g.,
   `creator-0-lastName`.

2) In `isAutocompleteField()`, `ItemFields.getName()` would normalize
   `creator-0-lastName` to `false`, since it's not a valid field.

3) `isAutocompleteField()` listed `place` as a base field despite its
   not having any mapped fields, so when `getTypeFieldsFromBase()` was
   called on it, the return value would be `false`, which would be added
   to the list of autocomplete fields, which would mean that the
   normalized field of `false` from `creator-0-lastName` would match,
   which would mean that `isAutocompleteField('creator-0-lastName')`
   would always return true...as long as `place` never gained a mapped
   field.

Except `isAutocompleteField()` wasn't supposed to be the test for
initializing autocomplete for creator fields anyway -- `fieldName ==
'creator'` was. But `fieldName` is something like `creator-0-lastName`,
not `creator`, which meant that that test always failed, which meant
that if `place` did gain a mapped field, both tests would fail, which
would cause the creator field not to be initialized for autocomplete,
which would cause it to break as soon as you started to type into it.

This fixes that.
2023-02-10 01:39:31 -05:00
.github CI: Enable ZIP building on fx102 branch 2022-09-12 21:52:37 -04:00
chrome Fix broken creator autocomplete if place becomes a base field 2023-02-10 01:39:31 -05:00
components fx-compat: Fix zotero:// protocol for reports (#2825) 2022-10-03 07:31:17 -04:00
defaults/preferences Rename PDF tab title pref to include reader 2023-02-09 17:21:21 +00:00
note-editor@72f18424d0 Update note-editor and pdf-reader submodules 2022-10-13 02:20:42 -04:00
pdf-reader@c430c98431 Update note-editor and pdf-reader submodules 2022-10-13 02:20:42 -04:00
pdf-worker@4456d0eeac Update pdf-reader and pdf-worker submodules 2022-09-29 13:58:45 +03:00
resource Update styles, translators, and CSL locales 2022-11-21 01:14:07 -05:00
scripts Prune Monaco distribution, fix JS acting like TS in Scaffold 2022-09-12 14:06:17 -07:00
scss fx-compat: Add color picker CE (#2682) 2022-11-21 02:48:16 -05:00
styles@d230dc72e9 Update styles, translators, and CSL locales 2022-11-21 01:14:07 -05:00
test Fix incorrect retries if multiple HTTP.request() calls get 500s 2023-01-11 02:20:07 -05:00
translators@698cb399d0 Update styles, translators, and CSL locales 2022-11-21 01:14:07 -05:00
.babelrc fx-compat: Remove most Babel plugins (#2855) 2022-10-06 18:53:07 -04:00
.eslintignore ESLint: Ignore additional files 2019-02-26 06:07:54 -05:00
.eslintrc fx-compat: Add ChromeUtils as eslint global 2022-06-19 04:16:53 -04:00
.gitattributes Fix enforcing of Unix newlines for SQL files 2016-02-26 18:37:44 -05:00
.gitignore Cache PDF tools in the source directory between test runs 2018-01-18 19:24:09 -05:00
.gitmodules Fix CI: Replace git:// URLs with HTTPS 2022-03-15 10:24:57 -07:00
chrome.manifest fx-compat: Restore word processor integration (#2841) 2022-10-06 00:17:28 -04:00
CONTRIBUTING.md Add "support questions" to CONTRIBUTING.md 2022-12-01 05:10:42 -05:00
COPYING Update COPYING 2018-03-26 11:27:48 +02:00
install.rdf Update version to 7.0.0 2022-07-19 22:38:01 -04:00
package-lock.json fx-compat: Remove most Babel plugins (#2855) 2022-10-06 18:53:07 -04:00
package.json fx-compat: Remove most Babel plugins (#2855) 2022-10-06 18:53:07 -04:00
README.md README.md: Update CI Badge (#2473) 2022-03-25 22:14:47 -04:00
update.rdf Update Fx minVersion to 45 2016-12-13 09:12:55 -05:00

Zotero

CI

Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.

Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.

For more information on how to use this source code, see the Zotero wiki.