-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Conversation
eileenmcnaughton
commented
May 9, 2017
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-20539: Do not heed dao default for field when setting defaults on reports
@@ -690,16 +690,7 @@ public function preProcess() { | |||
} | |||
|
|||
foreach ($this->_columns as $tableName => $table) { | |||
// set alias |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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
Jenkins test this please |
There was a problem hiding this 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.
thanks! |