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

Uploaded template files are not displayed when creating a new civioffice document #77

Open
svenow opened this issue Feb 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@svenow
Copy link
Contributor

svenow commented Feb 10, 2025

Observation

If a path that has been set as Local Folder in civioffice settings is prefixed with one or more whitespaces, then none of the Documents that have been stored under that path can be selected when creating a new CiviOffice Document.

Steps to reproduce

configure civioffice first

  • open civioffice settings at civicrm/admin/civioffice/settings
  • open configure Local Folder in CiviOffice Document Stores
  • place one more whitespace in front of the given path
    • /path/to/your/folder instead of /path/to/your/folder
  • save settings

then (if not done already)

  • upload a template file to the specified path on server

then try to create a document based on a available template file

  • open a contact
  • click on Action
  • click on Create CiviOffice Document (or the activity name you configured)
  • in the new dialog window open the Document drop down menu in order to show available templates stored in your Local Folder
  • no document are shown in the drop down menu

Version

observed with version 1.0-beta8

@svenow svenow added the bug Something isn't working label Feb 10, 2025
@bjendres
Copy link
Member

Should be fixed by trimming the input when changing the configuration option, as well as when reading the current value - or am I forgetting something here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants