update changelog and fix cs
This commit is contained in:
@@ -6,12 +6,11 @@ use Propel\Runtime\ActiveQuery\Criteria;
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Thelia\Model\Base\RewritingUrl as BaseRewritingUrl;
|
||||
|
||||
|
||||
class RewritingUrl extends BaseRewritingUrl {
|
||||
|
||||
class RewritingUrl extends BaseRewritingUrl
|
||||
{
|
||||
public function postInsert(ConnectionInterface $con = null)
|
||||
{
|
||||
if(null !== $this->getRedirected()) {
|
||||
if (null !== $this->getRedirected()) {
|
||||
//check if rewriting url alredy exists and put redirect to the new one
|
||||
RewritingUrlQuery::create()
|
||||
->filterByView($this->getView())
|
||||
|
||||
Reference in New Issue
Block a user