Handle order files download separately from delivery process files

This commit is contained in:
Almira Krdzic
2018-11-04 22:13:52 +01:00
parent 1d097eda6f
commit 4e8b04fa8d

View File

@@ -39,7 +39,8 @@ class Wiaas_Order_Fields {
public static function display_order_document_fields($file_path, $field) {
if ($field->type === 'wiaas_order_bundle_document') {
if (strpos($file_path, 'gf-download') === false &&
strpos($file_path, 'gf-wiaas-order-doc') === false) {
$field = new Wiaas_Field_Order_Bundle_Document();