Skip to content

Banners - Alias #45570

Closed
Closed
@brianteeman

Description

@brianteeman

Steps to reproduce the issue

Create a banner called "test"
Try and create a second banner with the same name "test"

Expected result

The code suggests that it should not be possible to save the second banner as the alias is not unique

// Verify that the alias is unique
$table = new self($db, $this->getDispatcher());
if ($table->load(['alias' => $this->alias, 'catid' => $this->catid]) && ($table->id != $this->id || $this->id == 0)) {
$this->setError(Text::_('COM_BANNERS_ERROR_UNIQUE_ALIAS'));
return false;
}

Actual result

The banner is saved resulting in two banners in the same category with the same name and alias

Additional comments

Not even sure why banners have an alias at all

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions