diff --git a/application/views/scripts/object/deploymentLink.phtml b/application/views/scripts/object/deploymentLink.phtml index 00a3c5d5..417e5ade 100644 --- a/application/views/scripts/object/deploymentLink.phtml +++ b/application/views/scripts/object/deploymentLink.phtml @@ -1,10 +1,19 @@ undeployedChanges) { +if (! $this->undeployedChanges && ! $this->totalUndeployedChanges) { return; } -if ($this->totalUndeployedChanges === 1) { +if ($this->undeployedChanges === 0) { + if ($this->totalUndeployedChanges) { + $msg = $this->translate('The is a single pending change'); + } else { + $msg = sprintf( + $this->translate('There are %d pending changes'), + $this->totalUndeployedChanges + ); + } +} elseif ($this->totalUndeployedChanges === 1) { $msg = $this->translate('There has been a single change to this object, nothing else has been modified'); } elseif ($this->totalUndeployedChanges === $this->undeployedChanges) { $msg = sprintf(