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

CRM-21061 - Fix rare report error when the report name is longer than 64 Char #10854

Merged
merged 3 commits into from
Aug 15, 2017

Conversation

agileware
Copy link
Contributor

Overview

Change civicrm_report_instance, report_id from 64 characters to 512 characters to match civicrm_option_value, value to avoid errors caused by truncating CiviCRM report name which are greater than 64 chars.

See https://issues.civicrm.org/jira/browse/CRM-21061

Before

64 character limit causes report_id to be truncated for long report names and incorrect value stored.

After

Increase to 512 character limit which should reduce the likelihood report name is truncated.

Technical Details

Change report_id to 512 varchar

Comments

There could possibly be better error reporting to avoid this situation and inform developers of long report names potentially causing an issue. See https://issues.civicrm.org/jira/browse/CRM-21061

agileware-dev and others added 3 commits August 14, 2017 17:38
…alue

Change civicrm_report_instance, report_id from 64 characters to 512 characters to match civicrm_option_value, value to avoid errors caused by truncating CiviCRM report name which are greater than 64 chars.

https://issues.civicrm.org/jira/browse/CRM-21061
Regenerate DAOs and Upgrade step to fix current installs
@seamuslee001
Copy link
Contributor

seamuslee001 commented Aug 14, 2017

@eileenmcnaughton this makes sense to me. There doesn't seem a reason why these should differ quiet as dramatically.

@eileenmcnaughton
Copy link
Contributor

Agree. Thanks @agileware @seamuslee001

@eileenmcnaughton eileenmcnaughton merged commit 23e6588 into civicrm:master Aug 15, 2017
@eileenmcnaughton eileenmcnaughton changed the title CRM-21061 - Change report_id from 64 to 512 to match civicrm_option_v… CRM-21061 - Fix rare report error when the report name is longer than 64 Char Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants