Skip to content

Commit

Permalink
Changed a use of $db->quoteName() to FabrikString::safeQuoteName() to
Browse files Browse the repository at this point in the history
avoid double quotung in certain corner cases.
  • Loading branch information
cheesegrits committed Jul 2, 2015
1 parent 864c7b6 commit a854b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_fabrik/models/form.php
Expand Up @@ -3045,7 +3045,7 @@ protected function getMaxRowId()
$listModel = $this->getListModel();
$fabrikDb = $listModel->getDb();
$item = $listModel->getTable();
$k = $fabrikDb->quoteName($item->db_primary_key);
$k = FabrikString::safeNameQuote($item->db_primary_key);

// @TODO JQuery this
$fabrikDb->setQuery("SELECT MAX($k) FROM " . FabrikString::safeColName($item->db_table_name) . $listModel->buildQueryWhere());
Expand Down

0 comments on commit a854b68

Please sign in to comment.