-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Entry types preferences: Unable to remove multiline property from field #11897
Comments
Hey @Siedlerchr, I am able to recreate this issue on the latest development branch build and I would be interested in picking this issue up as my first contribution if the issue does not have anyone assigned/planned to be assigned on it. Thanks. |
Welcome to the vibrant world of open-source development with JabRef! Newcomers, we're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly. In case you encounter failing tests during development, please check our developer FAQs! Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. Happy coding! 🚀 |
As a general hint, fields are global and shared among the entry types. That explains part of the issue and is by design. |
Thanks for this, it makes sense that the entry types are global among entry types but I do see that it does not reset/toggle between multi-line and single line. |
After looking into the issue, I see that the current implementation for multiline fields are saved and used globally shared among entry types like the implementation of required fields causing the original bug where one of the entry types having a field checked will toggle all other multiline options of its field in other entry types. This will require the modification of NonWrappableFields implementation in FieldPreferences with accommodation for per entry type field options making it possible to apply the multiline option per entry type rather than globally as per the issue description. This modification will require changes across multiple files as the NonWrappableFields getter is used 30 times in the codebase. I will further look into this tomorrow and put together a draft pull request for testing. |
Refs #11951 |
Hey @Siedlerchr, it seems like I was quite confused on the issue as I was working on a solution reflected by my comment #11897 (comment) which was proposing a major change that would modify FieldPreferences but I believe I am on the right track now. I believe the pull request #12040 is a potential solution to the original issue with a non invasive fix to the problem. I would appreciate your feedback to confirm that I am on the right path to move forward on fixing the reset to default functionality. I've marked the pull request as a draft for now because it doesn't yet address the issue around the reset button. I’m a rather a bit confused on the expected behavior for the reset button and what was originally wrong with it could you clarify this part for me? |
Related issue: #9840 |
JabRef version
Latest development branch build (please note build date below)
Operating system
Other (please describe below)
Details on version and operating system
OS independent
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
Custom entry types
I changed the "Author" field to multiline for the "Article" entry type in preferences.
After restarting JabRef, the "Author" field became multiline for all entry types, even though it should only apply to "Article".
Now, when I try to change the "Author" field back to a single line by unchecking the option and restarting, nothing happens. To remove the multiline setting, I have to update it for all entry types.
No, it doesn’t. It only resets the selected entry type, the "Article", but the "Author" field is still marked as multiline in other entry types. So, when saving, it remains multiline because of those other types.
Appendix
...
Log File
The text was updated successfully, but these errors were encountered: