|
@@ 99-102 (lines=4) @@
|
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
// query whether or not the URL key column has a value |
| 99 |
|
if ($this->hasValue(ColumnKeys::URL_KEY)) { |
| 100 |
|
$this->setValue(ColumnKeys::URL_KEY, $this->makeUrlKeyUnique($this->getValue(ColumnKeys::URL_KEY))); |
| 101 |
|
return; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
// query whether or not a product name is available |
| 105 |
|
if ($this->hasValue(ColumnKeys::NAME)) { |
|
@@ 105-108 (lines=4) @@
|
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
// query whether or not a product name is available |
| 105 |
|
if ($this->hasValue(ColumnKeys::NAME)) { |
| 106 |
|
$this->setValue(ColumnKeys::URL_KEY, $this->makeUrlKeyUnique($this->convertNameToUrlKey($this->getValue(ColumnKeys::NAME)))); |
| 107 |
|
return; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
// throw an exception, that the URL key can not be initialized and we're in admin store view |
| 111 |
|
if ($this->getSubject()->getStoreViewCode(StoreViewCodes::ADMIN) === StoreViewCodes::ADMIN) { |