From 3739b53d32fbfb4976440b4b5486573f9506ba33 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 30 Mar 2012 14:43:44 +0000 Subject: [PATCH] [-] Project : #PSFV-753 - OrderPayment::payment_method must be a genericName and not a name --- classes/order/OrderPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/order/OrderPayment.php b/classes/order/OrderPayment.php index 55d7529ea..ed9129ca1 100644 --- a/classes/order/OrderPayment.php +++ b/classes/order/OrderPayment.php @@ -51,7 +51,7 @@ class OrderPaymentCore extends ObjectModel 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_order_invoice' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), - 'payment_method' => array('type' => self::TYPE_STRING, 'validate' => 'isName'), + 'payment_method' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'conversion_rate' => array('type' => self::TYPE_INT, 'validate' => 'isFloat'), 'transaction_id' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'card_number' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254),