Automatically attach Invoice PDF to confirmation receipt based on the gl...

...obal setting
Why not use $this->_values['contribution_id'] = $value['contributionID']; ?