|
@@ -109,7 +109,7 @@ |
|
|
block discarded – undo |
|
109
|
109
|
$attachment->update(); |
|
110
|
110
|
} else { |
|
111
|
111
|
$attachment = $this->invoice->create_attachment($filename, $this->invoice->get_label(), "application/pdf"); |
|
112
|
|
- if ( !$attachment |
|
|
112
|
+ if (!$attachment |
|
113
|
113
|
|| !$this->invoice->set_parameter("midcom.helper.datamanager2.type.blobs", $name, $attachment->guid . ":" . $attachment->guid)) { |
|
114
|
114
|
throw new midcom_error("Failed to create invoice attachment for pdf: " . midcom_connection::get_error_string()); |
|
115
|
115
|
} |
Please login to merge, or discard this patch.