added technical data to xinon workorder and workordermph now has a unassign button
This commit is contained in:
@@ -13,6 +13,7 @@ class RimoWorkorderController extends mfBaseController {
|
||||
|
||||
protected function downloadAhaAction() {
|
||||
$workorder_id = $this->request->id;
|
||||
$inline = !empty($this->request->inline);
|
||||
|
||||
if(!$workorder_id || $workorder_id < 1) {
|
||||
header("HTTP/1.1 400 Bad Request");
|
||||
@@ -34,8 +35,11 @@ class RimoWorkorderController extends mfBaseController {
|
||||
exit;
|
||||
}
|
||||
|
||||
header("Content-type: text/pdf");
|
||||
header('Content-disposition: attachment; filename="'.$workorder->rimo_name.'_AHA.pdf"');
|
||||
$filename = $workorder->rimo_name.'_AHA.pdf';
|
||||
$disposition = $inline ? 'inline' : 'attachment';
|
||||
|
||||
header("Content-type: application/pdf");
|
||||
header('Content-disposition: '.$disposition.'; filename="'.$filename.'"');
|
||||
echo $return;
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user