Skip to content
Snippets Groups Projects
Commit 871be42b authored by Gabriel Carleton-Barnes's avatar Gabriel Carleton-Barnes Committed by Aaron Bauman
Browse files

Issue #3401651 by gcb: Entity Actions for entities without canonical paths...

Issue #3401651 by gcb: Entity Actions for entities without canonical paths cause whitescreen (Commerce Payments)
parent b3af6a05
No related branches found
No related tags found
No related merge requests found
Pipeline #57453 failed
...@@ -31,7 +31,7 @@ function salesforce_mapping_ui_entity_type_alter(array &$entity_types) { ...@@ -31,7 +31,7 @@ function salesforce_mapping_ui_entity_type_alter(array &$entity_types) {
if ($entity_type_id == 'salesforce_mapping' || $entity_type_id == 'salesforce_mapped_object') { if ($entity_type_id == 'salesforce_mapping' || $entity_type_id == 'salesforce_mapped_object') {
continue; continue;
} }
if ($entity_type->hasViewBuilderClass() && $entity_type->hasLinkTemplate('canonical')) { if ($entity_type->hasViewBuilderClass()) {
$entity_type->setLinkTemplate('salesforce', "/$entity_type_id/{{$entity_type_id}}/salesforce"); $entity_type->setLinkTemplate('salesforce', "/$entity_type_id/{{$entity_type_id}}/salesforce");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment