Skip to content

Commit 3caa3d8

Browse files
authored
Merge pull request #539 from argiepiano/1.x-3.x-issue-534
Issue #534. Add data attribute to allow tableselect to work.
2 parents 8138181 + 12633e1 commit 3caa3d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uc_attribute/uc_attribute.admin.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ function theme_uc_object_options_form($variables) {
10921092
foreach (element_children($form['attributes']) as $key) {
10931093
$rows = array();
10941094
foreach (element_children($form['attributes'][$key]['options']) as $oid) {
1095+
// Add the data attributes to the checkbox so that "check all" works.
1096+
$form['attributes'][$key]['options'][$oid]['select']['#attributes']['data-tableselect-id'] = implode('-', $form['attributes'][$key]['options'][$oid]['select']['#parents']);
10951097
$rows[] = array(
10961098
'data' => array(
10971099
backdrop_render($form['attributes'][$key]['options'][$oid]['select']),

0 commit comments

Comments
 (0)