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(views): in table lists, rows now have IDs #10697

Merged
merged 1 commit into from Jan 19, 2017
Merged

Conversation

mrclay
Copy link
Member

@mrclay mrclay commented Jan 11, 2017

Fixes #10696

@@ -101,6 +102,7 @@
} else if (is_callable(array($item, 'getType'))) {
$type = $item->getType();

$row_attrs['id'] = "elgg-object-{$item->id}";
Copy link
Contributor

Choose a reason for hiding this comment

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

Always object?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, I didn't even look how "list" did it. Should be fixed.

} elseif (is_callable(array($item, 'getType'))) {
$type = $item->getType();

$li_attrs['id'] = "item-$type-{$item->id}";
Copy link
Member Author

Choose a reason for hiding this comment

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

This is just to clean this up a bit and normalize with the table view.

@jdalsem jdalsem merged commit 273ab5e into Elgg:2.3 Jan 19, 2017
@mrclay mrclay deleted the 10696_tables branch February 6, 2017 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants