diff --git a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-navigation.php b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-navigation.php index 22f9a05..2614de1 100644 --- a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-navigation.php +++ b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-navigation.php @@ -4,6 +4,8 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } +$is_step_completed = $current_step->get_status() === 'complete' || $current_step->get_status() === 'approved'; + // get next step id $next_step = gravity_flow()->get_next_step($current_step, $current_step->get_entry(), $current_step->get_form()); $next_step_id = empty($next_step) ? null : $next_step->get_id(); @@ -19,7 +21,7 @@ foreach ($steps as $step) { $previous_step_id = empty($previous_step) ? null : $previous_step->get_id(); // bail out if none exist -if ( empty($next_step_id) && empty($previous_step_id) ) { +if ( empty($next_step_id) && empty($previous_step_id) && $is_step_completed) { return; }