Version 0.9.13
This commit is contained in:
@ -574,7 +574,9 @@ incrementing it.
|
||||
/* if it is 0 -> get the max + 1 value */
|
||||
if (!$data['ordering']) {
|
||||
$db = Factory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
// $query = $db->getQuery(true) // is deprecated,
|
||||
// using createQuery() instead:
|
||||
$query = $db->createQuery()
|
||||
->select('MAX(ordering)')
|
||||
->from('#__depot');
|
||||
|
||||
|
Reference in New Issue
Block a user