// Fix #PSFV-48
This commit is contained in:
@@ -57,7 +57,7 @@ class WishList extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['token'] = pSQL($this->token);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
|
||||
@@ -49,7 +49,7 @@ class DejalaCart extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_dejala_product'] = (int)($this->id_dejala_product);
|
||||
$fields['shipping_date'] = pSQL($this->shipping_date);
|
||||
$fields['id_delivery'] = (int)($this->id_delivery);
|
||||
|
||||
@@ -62,7 +62,7 @@ class EditorialClass extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
$this->validateFieldsLang();
|
||||
|
||||
$fieldsArray = array('body_title', 'body_subheading', 'body_paragraph', 'body_logo_subheading');
|
||||
$fields = array();
|
||||
@@ -107,7 +107,7 @@ class EditorialClass extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_editorial'] = (int)($this->id);
|
||||
$fields['body_home_logo_link'] = pSQL($this->body_home_logo_link);
|
||||
return $fields;
|
||||
|
||||
@@ -57,7 +57,7 @@ class FavoriteProduct extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_product'] = (int)$this->id_product;
|
||||
$fields['id_customer'] = (int)$this->id_customer;
|
||||
|
||||
@@ -46,7 +46,7 @@ class LoyaltyModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_loyalty_state'] = (int)$this->id_loyalty_state;
|
||||
$fields['id_customer'] = (int)$this->id_customer;
|
||||
$fields['id_order'] = (int)$this->id_order;
|
||||
|
||||
@@ -43,7 +43,7 @@ class LoyaltyStateModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_order_state'] = (int)($this->id_order_state);
|
||||
return $fields;
|
||||
}
|
||||
@@ -55,8 +55,8 @@ class LoyaltyStateModule extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public static function getDefaultId() { return 1; }
|
||||
|
||||
@@ -53,7 +53,7 @@ class MondialRelayClass extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
if (isset($this->id_mr_selected))
|
||||
$fields['id_mr_selected'] = (int)($this->id_mr_selected);
|
||||
|
||||
@@ -73,7 +73,7 @@ class ProductComment extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields(false);
|
||||
$this->validateFields(false);
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['id_guest'] = (int)($this->id_guest);
|
||||
|
||||
@@ -42,14 +42,14 @@ class ProductCommentCriterion extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
return array('id_product_comment_criterion_type' => (int)$this->id_product_comment_criterion_type, 'active' => (int)$this->active);
|
||||
}
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -48,7 +48,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_sponsor'] = (int)$this->id_sponsor;
|
||||
$fields['email'] = pSQL($this->email);
|
||||
$fields['lastname'] = pSQL($this->lastname);
|
||||
|
||||
@@ -48,7 +48,7 @@ class PaymentCC extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_order'] = (int)($this->file);
|
||||
$fields['id_currency'] = (int)($this->file);
|
||||
$fields['amount'] = (float)($this->amount);
|
||||
|
||||
Reference in New Issue
Block a user