Move URL to SeoForm (SEO tab)

This commit is contained in:
touffies
2013-11-28 12:11:45 +01:00
parent 6418914a6d
commit dc28ce2d30
2 changed files with 1 additions and 19 deletions

View File

@@ -33,7 +33,6 @@ class ProductUpdateEvent extends ProductCreateEvent
protected $description; protected $description;
protected $postscriptum; protected $postscriptum;
protected $url;
protected $parent; protected $parent;
public function __construct($product_id) public function __construct($product_id)
@@ -89,18 +88,6 @@ class ProductUpdateEvent extends ProductCreateEvent
return $this; return $this;
} }
public function getUrl()
{
return $this->url;
}
public function setUrl($url)
{
$this->url = $url;
return $this;
}
public function getParent() public function getParent()
{ {
return $this->parent; return $this->parent;

View File

@@ -24,7 +24,7 @@ namespace Thelia\Form;
use Symfony\Component\Validator\Constraints\GreaterThan; use Symfony\Component\Validator\Constraints\GreaterThan;
use Thelia\Core\Translation\Translator; use Thelia\Core\Translation\Translator;
use Symfony\Component\Validator\Constraints\NotBlank;
class ProductModificationForm extends ProductCreationForm class ProductModificationForm extends ProductCreationForm
{ {
@@ -46,11 +46,6 @@ class ProductModificationForm extends ProductCreationForm
"label_attr" => array("for" => "product_template_field") "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 // Add standard description fields, excluding title and locale, which a re defined in parent class