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

Add 'Add to campaign' button to pages #1459

Merged

Conversation

hafriedlander
Copy link

@tractorcow
Copy link
Contributor

Can you please phpdoc the new method?

@@ -1191,6 +1191,11 @@ public function doRollback($data, $form) {
return $this->getResponseNegotiator()->respond($this->getRequest());
}

public function addtocampaign($data, $form) {
$handler = new AddToCampaignHandler($form, $data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we use ::create here as we do below?

Copy link
Contributor

Choose a reason for hiding this comment

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

use Injectable in AddToCampaignHandler.php :D

@tractorcow tractorcow merged commit f0b574b into silverstripe:master Apr 27, 2016
@tractorcow tractorcow deleted the pulls/4.0/add-to-campaign branch April 27, 2016 22:04
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