merging the fixurl bug
This commit is contained in:
parent
3c325c9c5a
commit
347cc82a2d
2 changed files with 6 additions and 0 deletions
|
|
@ -643,6 +643,11 @@ sub fixUrl {
|
|||
$url .= ".".$self->session->setting->get("urlExtension");
|
||||
}
|
||||
|
||||
# make sure the url isn't empty after all that filtering
|
||||
if ($url eq "") {
|
||||
$url = $self->getId;
|
||||
}
|
||||
|
||||
# check to see if the url already exists or not, and increment it if it does
|
||||
if ($self->urlExists($self->session, $url, {assetId=>$self->getId})) {
|
||||
my @parts = split(/\./,$url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue