mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-27 02:12:50 +00:00
frontend save
This commit is contained in:
parent
9b9e42ff5d
commit
af30a2a151
@ -112,7 +112,7 @@ class WeblinkTable extends Table implements VersionableTableInterface, TaggableT
|
|||||||
// Verify that the alias is unique
|
// Verify that the alias is unique
|
||||||
$table = new WeblinkTable($this->getDbo());
|
$table = new WeblinkTable($this->getDbo());
|
||||||
|
|
||||||
if ($table->load(array('language' => $this->language, 'alias' => $this->alias, 'catid' => $this->catid))
|
if ($table->load(array('language' => $this->language, 'alias' => $this->alias, 'catid' => (int)$this->catid))
|
||||||
&& ($table->id != $this->id || $this->id == 0))
|
&& ($table->id != $this->id || $this->id == 0))
|
||||||
{
|
{
|
||||||
$this->setError(Text::_('COM_WEBLINKS_ERROR_UNIQUE_ALIAS'));
|
$this->setError(Text::_('COM_WEBLINKS_ERROR_UNIQUE_ALIAS'));
|
||||||
|
Loading…
Reference in New Issue
Block a user