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 AddToCampaign dialog box functionality #5368

Merged

Conversation

hafriedlander
Copy link
Contributor

No description provided.

@tractorcow
Copy link
Contributor

Also see silverstripe/silverstripe-cms#1459

@hafriedlander hafriedlander force-pushed the pulls/4.0/add-to-campaign branch 2 times, most recently from 555bf04 to a4437fa Compare April 25, 2016 21:50
* Add to campaign dialog
* -------------------------------------------- */

#add-to-campaign__dialog {
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't be using ID selectors in CSS.

@tractorcow
Copy link
Contributor

I'm going to stop reviewing and just push up phpdoc fixes. :D


$fields = new FieldList([$campaignDropdown]);

foreach ($this->data as $k => $v) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought you were going to change this? I'm still getting array to string conversion when pushing data that is nested array content.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can change this to a recursive walk (probably in another method) that knows how to reconstruct a set of Name[Field] hiddenfields for each nested array.

@tractorcow tractorcow merged commit e01846d into silverstripe:master Apr 26, 2016
@tractorcow tractorcow deleted the pulls/4.0/add-to-campaign branch April 26, 2016 03:30
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

3 participants