From dc28ce2d30a07365e86d200dc87b401f19061058 Mon Sep 17 00:00:00 2001 From: touffies Date: Thu, 28 Nov 2013 12:11:45 +0100 Subject: [PATCH] Move URL to SeoForm (SEO tab) --- .../Core/Event/Product/ProductUpdateEvent.php | 13 ------------- core/lib/Thelia/Form/ProductModificationForm.php | 7 +------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/core/lib/Thelia/Core/Event/Product/ProductUpdateEvent.php b/core/lib/Thelia/Core/Event/Product/ProductUpdateEvent.php index 535f04462..7d0f9469c 100644 --- a/core/lib/Thelia/Core/Event/Product/ProductUpdateEvent.php +++ b/core/lib/Thelia/Core/Event/Product/ProductUpdateEvent.php @@ -33,7 +33,6 @@ class ProductUpdateEvent extends ProductCreateEvent protected $description; protected $postscriptum; - protected $url; protected $parent; public function __construct($product_id) @@ -89,18 +88,6 @@ class ProductUpdateEvent extends ProductCreateEvent return $this; } - public function getUrl() - { - return $this->url; - } - - public function setUrl($url) - { - $this->url = $url; - - return $this; - } - public function getParent() { return $this->parent; diff --git a/core/lib/Thelia/Form/ProductModificationForm.php b/core/lib/Thelia/Form/ProductModificationForm.php index 34785cf45..708599ffb 100644 --- a/core/lib/Thelia/Form/ProductModificationForm.php +++ b/core/lib/Thelia/Form/ProductModificationForm.php @@ -24,7 +24,7 @@ namespace Thelia\Form; use Symfony\Component\Validator\Constraints\GreaterThan; use Thelia\Core\Translation\Translator; -use Symfony\Component\Validator\Constraints\NotBlank; + class ProductModificationForm extends ProductCreationForm { @@ -46,11 +46,6 @@ class ProductModificationForm extends ProductCreationForm "label_attr" => array("for" => "product_template_field") )) - ->add("url", "text", array( - "label" => Translator::getInstance()->trans("Rewriten URL *"), - "constraints" => array(new NotBlank()), - "label_attr" => array("for" => "rewriten_url_field") - )) ; // Add standard description fields, excluding title and locale, which a re defined in parent class