Skip to content

Commit 60b5622

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 0144a0d commit 60b5622

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
@@ -169,15 +169,6 @@ protected function onRequest()
169169
$this->redirectAndExit($url);
170170
}
171171

172-
protected function getNode(BpConfig $bp, $nodeName)
173-
{
174-
if ($nodeName) {
175-
return $bp->getNode($nodeName);
176-
} else {
177-
return null;
178-
}
179-
}
180-
181172
public function onSuccess()
182173
{
183174
$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)