Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix menu save error in PostgresSQL

  • Loading branch information...
commit db4835f337f879de9200a69048c33eb60aedd54e 1 parent 6510e7d
Viet Hoang Vu vietvh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libraries/legacy/table/menu.php
2  libraries/legacy/table/menu.php
View
@@ -155,7 +155,7 @@ public function store($updateNulls = false)
// Verify that the alias is unique
$table = JTable::getInstance('Menu', 'JTable', array('dbo' => $this->getDbo()));
- if ($table->load(array('alias' => $this->alias, 'parent_id' => $this->parent_id, 'client_id' => $this->client_id, 'language' => $this->language))
+ if ($table->load(array('alias' => $this->alias, 'parent_id' => $this->parent_id, 'client_id' => (int) $this->client_id, 'language' => $this->language))
&& ($table->id != $this->id || $this->id == 0))
{
if ($this->menutype == $table->menutype)
Please sign in to comment.
Something went wrong with that request. Please try again.