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

Node entities #2

Merged
merged 3 commits into from
Jun 22, 2020
Merged

Node entities #2

merged 3 commits into from
Jun 22, 2020

Conversation

qadan
Copy link

@qadan qadan commented Jun 17, 2020

See fsulib#12

@@ -62,7 +63,7 @@ public function showEmbargoes($node = NULL) {
'exempt_ips' => $ip_range_formatted,
'exempt_users' => $formatted_exempt_users_row,
'additional_emails' => $formatted_emails,
'edit' => Markup::create("<a href='/node/{$node}/embargoes/{$embargo_id}'>Edit</a><br><a href='/admin/config/content/embargoes/settings/embargoes/{$embargo_id}/delete'>Delete</a>"),
'edit' => Markup::create("<a href='/node/{$node->id()}/embargoes/{$embargo_id}'>Edit</a><br><a href='/admin/config/content/embargoes/settings/embargoes/{$embargo_id}/delete'>Delete</a>"),

Choose a reason for hiding this comment

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

Again, more related to the idea of a bigger hardening pass (and also applicable below), but... these probably shouldn't be hardcoding links like this... probably something of an issue in the context of multisites and language handling.

@adam-vessey adam-vessey merged commit b472870 into discoverygarden:8.x-1.x Jun 22, 2020
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.

2 participants