From ed0e44b964ed58101c72faf48429734177b598f5 Mon Sep 17 00:00:00 2001 From: Almira Krdzic Date: Wed, 1 Aug 2018 14:47:02 +0200 Subject: [PATCH] fixes --- .../wiaas/includes/class-wiaas-delivery-process.php | 10 ++++++++++ .../class-wiaas-delivery-process-step.php | 1 + 2 files changed, 11 insertions(+) diff --git a/backend/app/plugins/wiaas/includes/class-wiaas-delivery-process.php b/backend/app/plugins/wiaas/includes/class-wiaas-delivery-process.php index 9f883c4..6e476cd 100644 --- a/backend/app/plugins/wiaas/includes/class-wiaas-delivery-process.php +++ b/backend/app/plugins/wiaas/includes/class-wiaas-delivery-process.php @@ -22,6 +22,16 @@ function wiaas_get_entry_meta($entry_meta, $form_id) { ), ); + $entry_meta[ 'wiaas_delivery_process_id' ] = array( + 'label' => 'Wiaas Delivery Process Id', + 'is_numeric' => true, + 'update_entry_meta_callback' => null, + 'is_default_column' => false, // this column will be displayed by default on the entry list + 'filter' => array( + 'operators' => array( 'is' ), + ), + ); + return $entry_meta; } diff --git a/backend/app/plugins/wiaas/includes/delivery-process/class-wiaas-delivery-process-step.php b/backend/app/plugins/wiaas/includes/delivery-process/class-wiaas-delivery-process-step.php index 911d742..60a0648 100644 --- a/backend/app/plugins/wiaas/includes/delivery-process/class-wiaas-delivery-process-step.php +++ b/backend/app/plugins/wiaas/includes/delivery-process/class-wiaas-delivery-process-step.php @@ -83,6 +83,7 @@ class Wiaas_Delivery_Process_Step extends Gravity_Flow_Step { $target_form = GFAPI::get_form( $this->target_form_id ); $new_entry = array( 'form_id' => $this->target_form_id, + 'wiaas_delivery_process_id' => $this->get_entry_id(), ); $customer_id_value = null;