In Forena, when creating a new report, if there is a dash in the report name then it throws an error. This name will be used for the .frx file and for the URL, so the input should have reasonable restrictions, but I think the current restriction is far too narrow.
Please find below patch for the same.

CommentFileSizeAuthor
allow_dash_in_report_name.patch794 bytes309saurabhd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

309saurabhd created an issue. See original summary.

abarpetia’s picture

Status: Active » Needs work

Having this same issue. I am creating breadcrumb and linking report via it but because of '_' in report URL facing this issue. As Drupal not accept dash as machine-readable name, not sure what will be the exact solution for this.

My work around to fix URL is to create URL Aliases which will be linking URL with _ to URL with -.

Getting following error when trying to apply patch.

sites\all\modules\forena>git apply -v allow_dash_in_report_name.patch
allow_dash_in_report_name.patch:22: trailing whitespace.
  $element['#machine_name']['replace_pattern'] = '[^A-Za-z0-9_\.\/-]+';
fatal: corrupt patch at line 25