fix formatting

This commit is contained in:
Bilal Catic
2018-11-02 11:21:19 +01:00
parent a059f4b83d
commit 2a3f2f8245
2 changed files with 1 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ class Wiaas_Admin_Order_Process_Flow {
public static function add_custom_fields_after_order_details($order){
$global_estimated_delivery_date = Wiaas_Order::get_global_estimated_date($order->id);
$formated_global_estimated_delivery_date = $global_estimated_delivery_date ? date("Y-m-d", $global_estimated_delivery_date) : "";
$order_id = $order->id;
require 'views/html-order-global-delivery-date.php';

View File

@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<p class="form-field form-field-wide">
<label for="estimated-delivery-date">Estimated delivery date:</label>
<input id="estimated-delivery-date" name="estimated-delivery-date"
type="date" value="<?php echo $formated_global_estimated_delivery_date ?>"
type="date" value="<?php echo $global_estimated_delivery_date ? date("Y-m-d", $global_estimated_delivery_date) : ""; ?>"
onChange="onGlobalEstimatedDeliveryDateChange(this.value)"/>
</p>