Skip to content

Commit

Permalink
IBX-3957: Made NOP URL aliases reusable and original
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Oct 2, 2023
1 parent c225702 commit df28106
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ public function insertRow(array $values): int
$values['is_original'] = 1;
}
if ($values['action'] === self::NOP_ACTION) {
$values['is_original'] = 0;
$values['is_original'] = 1;
}

$query = $this->connection->createQueryBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ private function internalPublishUrlAliasForLocation(
// 2. existing location or custom alias entry
// 3. history entry
if (
$row['action'] === Gateway::NOP_ACTION ||
$row['action'] === $action ||
(int)$row['is_original'] === 0
) {
Expand Down

0 comments on commit df28106

Please sign in to comment.