Skip to content

Commit 448da77

Browse files
committed
Show the delete/cancel icon only for the imported node
Imported nodes will not have edit icon on their node tile. Hence, it is required to show the delete icon in their node tile. As the other nodes will have edit icon and their edit forms contain the delete button, it is not necessary to show the delete/cancel icon in their node tiles.
1 parent 038d04b commit 448da77

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

application/forms/ProcessForm.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,6 @@ protected function onRequest()
160160
}
161161
}
162162

163-
protected function getNode(BpConfig $bp, $nodeName)
164-
{
165-
if ($nodeName) {
166-
return $bp->getNode($nodeName);
167-
} else {
168-
return null;
169-
}
170-
}
171-
172163
public function onSuccess()
173164
{
174165
$changes = ProcessChanges::construct($this->bp, $this->session);

library/Businessprocess/Renderer/TileRenderer/NodeTile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected function addActionLinks()
338338
}
339339
}
340340

341-
if ($this->renderer->getBusinessProcess()->getMetadata()->canModify()) {
341+
if ($this->renderer->getBusinessProcess()->getMetadata()->canModify() && $this->node instanceof ImportedNode) {
342342
$params = array(
343343
'action' => 'delete',
344344
'deletenode' => $this->node->getName(),

0 commit comments

Comments
 (0)