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

Fixed #7071 - Reply to, Reply to All issue with attachment #7430

Open
wants to merge 3 commits into
base: hotfix-7.10.x
Choose a base branch
from
Open

Conversation

604media
Copy link
Contributor

Fixed #7071 - Reply to, Reply to All issue with attachment

modules/Emails/Email.php Outdated Show resolved Hide resolved
@cameronblaikie cameronblaikie added the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Jun 19, 2019
@samus-aran
Copy link
Contributor

Hey @604media - Do you need help with how to format it to be PSR-2 compliant?
I'm sure you can change your settings in your IDE (what do you use btw?) to format it appropriately. Or use Robotask. https://docs.suitecrm.com/developer/automatedtasks/codingstyle/

@samus-aran samus-aran added the Status:Requires Updates Issues & PRs which requires input or update from the author label Jun 24, 2019
@604media
Copy link
Contributor Author

Hi @samus-aran and @Dillon-Brown
123ddd4
Can you please check and confirm above commits resolves PSR-2?
I'm using Eclipse and now code formatter properly set to PSR-2
image

@samus-aran
Copy link
Contributor

@604media Looks good! @Mac-Rae Can you assess again please?

@samus-aran
Copy link
Contributor

Hmm a test appears to be failing.

  1. EmailTest::testSendSaveAndStoreInSentOk
    SuiteCRM\StateSaverException: Some garbage state left in stack (did you pop everything?)
    Needs to restore:
    [db_table.inbound_email] => 'inbound_email'
    [db_table.emails] => 'emails'
    [db_table.emails_text] => 'emails_text'
    [GLOBALS._POST] => '_POST'
    [GLOBALS._GET] => '_GET'
    [GLOBALS._REQUEST] => '_REQUEST'
    [GLOBALS._SESSION] => '_SESSION'
    [GLOBALS._SERVER] => '_SERVER'
    [GLOBALS._ENV] => '_ENV'
    [GLOBALS._FILES] => '_FILES'
    [GLOBALS._COOKIE] => '_COOKIE'

@604media
Copy link
Contributor Author

604media commented Jun 25, 2019

Hmm a test appears to be failing.

1. EmailTest::testSendSaveAndStoreInSentOk
   SuiteCRM\StateSaverException: Some garbage state left in stack (did you pop everything?)
   Needs to restore:
   [db_table.inbound_email] => 'inbound_email'
   [db_table.emails] => 'emails'
   [db_table.emails_text] => 'emails_text'
   [GLOBALS._POST] => '_POST'
   [GLOBALS._GET] => '_GET'
   [GLOBALS._REQUEST] => '_REQUEST'
   [GLOBALS._SESSION] => '_SESSION'
   [GLOBALS._SERVER] => '_SERVER'
   [GLOBALS._ENV] => '_ENV'
   [GLOBALS._FILES] => '_FILES'
   [GLOBALS._COOKIE] => '_COOKIE'

@samus-aran Is this for me? No major changes before processing attachment I'm checking action from parent URL

@gymad
Copy link
Contributor

gymad commented Jun 25, 2019

Hi @604media
if you scroll a little bit down in the phpunit tells what the issue is exactly:

Caused by
PHPUnit_Framework_Error_Notice: Undefined index: refer_action
/home/travis/build/salesagility/SuiteCRM/modules/Emails/Email.php:3031

You should check if the request really contains a refer_action query parameter, else the php shows up an undefined index error. Also your chenges implicate that the test should make accept the results only if the request variable really exists.

@Dillon-Brown Dillon-Brown added the PR:Community Contribution These are contribution made by the community label Jun 28, 2019
@cameronblaikie cameronblaikie removed the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Aug 12, 2019
@Mac-Rae
Copy link
Contributor

Mac-Rae commented Aug 14, 2019

Assessed 👍

@cameronblaikie cameronblaikie added the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Sep 2, 2019
@Mac-Rae
Copy link
Contributor

Mac-Rae commented Sep 18, 2019

Hi @604media ,

Please resolve the conflicts on this pull request bringing it up to date with the related branch?
For more information please take a look at our contribution guidelines.

If you would like assistance please ensure you select "Allow edits from maintainers" checkbox and leave us a message @tagging me!

Thanks 👍

@Dillon-Brown Dillon-Brown removed Status:Requires Updates Issues & PRs which requires input or update from the author Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member labels Oct 3, 2019
@SuiteBot
Copy link

SuiteBot commented Aug 27, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ Dillon-Brown
❌ processflowca
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR:Community Contribution These are contribution made by the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants