Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty fields being added to the entry table preferences #9916

Conversation

BeeJay28
Copy link
Contributor

@BeeJay28 BeeJay28 commented May 17, 2023

Fixes #9913

In the Entry Table - tab in Preferences, you can add custom columns by specifying a name in the combobox below the grid. If you type in something into the textfield and delete it, you can still add a custom column entry into the list, despite the textfield being empty.
We add one more check for the actual textual content to avoid this bug.

Compulsory checks

Siedlerchr
Siedlerchr previously approved these changes May 18, 2023
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 18, 2023
@calixtus calixtus merged commit 111f466 into JabRef:main May 18, 2023
@calixtus
Copy link
Member

Thanks for the fix. Looking forward for more. 😍

Siedlerchr added a commit that referenced this pull request May 18, 2023
* upstream/main: (302 commits)
  Fix empty fields being added to the entry table preferences (#9916)
  checkstyle
  Fixed tests by reverting development artifact
  Fixed checkstyle
  Fixed test
  remove empty lines
  move to entry editor prefs
  Reduced use of Globals for fileUpdateMonitor, removed unused themeManager vars
  reformulate
  Update src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java
  fix checkstyle
  Modernize tests at BibtexParserTest
  Removed ImportFormatReader from Globals at all
  Fixes some JavaDoc errors
  Add newline
  Really fix order
  Fix CHANGELOG.md order
  Fix checkstyle
  Update CHANGELOG.md
  move to entry editor editor tab
  ...

# Conflicts:
#	docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace.md
Siedlerchr added a commit that referenced this pull request May 20, 2023
…hEncoding

* upstream/main:
  Add fill in of selectedApplicationProperty when opening the editDialog of external application preference (#9921)
  Fix empty fields being added to the entry table preferences (#9916)
  checkstyle
  Update tinylog.properties
  Fixed command name
  More error handling
  Fix IOUtils usage
  Add xdg-user-dirs call to Linux.java
  Fix formatting
  Check for existance
  Incorporate user feedback
  Fix tests
  Respect OS language at NativeDesktop#getDefaultFileChooserDirectory

# Conflicts:
#	CHANGELOG.md
Siedlerchr added a commit that referenced this pull request May 20, 2023
…ment

* upstream/main:
  Add fill in of selectedApplicationProperty when opening the editDialog of external application preference (#9921)
  Fix empty fields being added to the entry table preferences (#9916)
  checkstyle
  Update tinylog.properties
  Fixed command name
  More error handling
  Fix IOUtils usage
  Add xdg-user-dirs call to Linux.java
  Fix formatting
  Check for existance
  Incorporate user feedback
  Fix tests
  Respect OS language at NativeDesktop#getDefaultFileChooserDirectory
Siedlerchr added a commit that referenced this pull request May 21, 2023
…ment

* upstream/main:
  Add fill in of selectedApplicationProperty when opening the editDialog of external application preference (#9921)
  Fix empty fields being added to the entry table preferences (#9916)
  checkstyle
  Update tinylog.properties
  Fixed command name
  More error handling
  Fix IOUtils usage
  Add xdg-user-dirs call to Linux.java
  Fix formatting
  Check for existance
  Incorporate user feedback
  Fix tests
  Respect OS language at NativeDesktop#getDefaultFileChooserDirectory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintable preferences status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

empty field should not be added in entry table prefs
4 participants