Differential D21699 Diff 51710 src/applications/harbormaster/controller/HarbormasterBuildActionController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildActionController.php
Show All 35 Lines | switch ($via) { | ||||
break; | break; | ||||
default: | default: | ||||
$return_uri = $this->getApplicationURI('/build/'.$build->getID().'/'); | $return_uri = $this->getApplicationURI('/build/'.$build->getID().'/'); | ||||
break; | break; | ||||
} | } | ||||
try { | try { | ||||
$xaction->assertCanSendMessage($viewer, $build); | $xaction->assertCanSendMessage($viewer, $build); | ||||
} catch (HarbormasterRestartException $ex) { | } catch (HarbormasterMessageException $ex) { | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setTitle($ex->getTitle()) | ->setTitle($ex->getTitle()) | ||||
->appendChild($ex->getBody()) | ->appendChild($ex->getBody()) | ||||
->addCancelButton($return_uri); | ->addCancelButton($return_uri); | ||||
} | } | ||||
if ($request->isDialogFormPost()) { | if ($request->isDialogFormPost()) { | ||||
$build->sendMessage($viewer, $xaction->getHarbormasterBuildMessageType()); | $build->sendMessage($viewer, $xaction->getHarbormasterBuildMessageType()); | ||||
Show All 15 Lines |