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

Fix getRelatedParts() in multipart_related #4

Closed
wants to merge 1 commit into from

Conversation

megazoll
Copy link

@megazoll megazoll commented Jun 4, 2013

No description provided.

@derickr
Copy link
Member

derickr commented Jun 7, 2013

Hey - what exactly does this fix? And could you add a test case please?

@megazoll
Copy link
Author

megazoll commented Jun 7, 2013

I think getRelatedParts() should return all parts when mainPart not null and without first part if mainPart is null. Is it correct? Or I should doing array_merge($multiplart->getMainPart(), $multipart->getRelatedParts()) to get all parts?

@derickr
Copy link
Member

derickr commented Jun 8, 2013

Are you proposing to change existing behaviour? Did you run the test cases after your change?

@megazoll
Copy link
Author

megazoll commented Jun 8, 2013

I'm thought this is bug but apparently this is feature. Then I propose to add new method for getting all parts.

@derickr
Copy link
Member

derickr commented Jul 24, 2013

Closing this as it's not a bug. Please make a new PR with a new feature.

@derickr derickr closed this Jul 24, 2013
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.

None yet

2 participants