Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 912
    • Issues 912
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #1530

Closed
Open
Opened Jan 16, 2020 by hansrossel@hansrossel

Invoice Prefix should give error or filter out certain characters like /

The invoice prefix at civicrm/admin/setting/preferences/contribute allows characters like / to be saved in the Prefix name. For example "Organisation/2020/Invoices" saves without problems as Invoice Prefix.

But the character / is not allowed in directory names in Linux, see discussion https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names

When trying to print an invoice there is an error in that case "Could not move custom file to custom upload directory".

So, or CiviCRM should replace the / by an allowed character like a dash (-) or should give an error message that the character is not allowed when saving the Invoice Prefix.

Edited Jan 16, 2020 by hansrossel
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1530