Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

If only one selected return its object instead of array #1510

Merged

Conversation

BenjaminNeilDavis
Copy link
Contributor

Fixes #1509

@BenjaminNeilDavis BenjaminNeilDavis force-pushed the issue-1509-bulk-action-fix branch from d2e6652 to 07b37a2 Compare September 10, 2015 23:28
@@ -335,6 +335,9 @@
rowData: clickedRow.data('item_data')
});
}
if (selectedObj.length === 1) {
selectedObj = selectedObj[0];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

row level actions at line 306 above passes a single object to list_getActionItems.
change the condition to check if selected is an array or an obj. if (!<obj>) do for loop. `else selectedObj = selected``

disregard i see the selected.row is where count is kept. the variable is an obj one way or the other.

swilliamset added a commit that referenced this pull request Sep 11, 2015
…n-fix

If only one selected return its object instead of array
@swilliamset swilliamset merged commit 071820f into ExactTarget:master Sep 11, 2015
@cmcculloh-kr cmcculloh-kr added this to the 3.11.2 milestone Sep 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants