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-20539 Do not heed dao default for field when setting defaults on report #10319

Merged
merged 2 commits into from
May 11, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 9, 2017

@@ -690,16 +690,7 @@ public function preProcess() {
}

foreach ($this->_columns as $tableName => $table) {
// set alias
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just an extraction for readability

@@ -714,7 +705,7 @@ public function preProcess() {
}
}

$doNotCopy = array('required');
$doNotCopy = array('required', 'default');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the change - ie. if the DAO defaults to 1 then that doesn't mean the field should default to displayed or being a group by

@seamuslee001
Copy link
Contributor

Jenkins test this please

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and agree that the default is not set from the DAO fields, hence not needed while copying.

@eileenmcnaughton eileenmcnaughton merged commit 53537f1 into civicrm:master May 11, 2017
@eileenmcnaughton
Copy link
Contributor Author

thanks!

@eileenmcnaughton eileenmcnaughton deleted the report branch May 11, 2017 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants