Skip to content

Commit

Permalink
loadObject instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpit-24 committed Apr 7, 2019
1 parent 1e57dec commit 7c9d9bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/src/MVC/Model/AdminModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,11 +510,11 @@ protected function batchCopy($value, $pks, $contexts)
->where($db->quoteName('item_id') . ' = ' . $pk);
$db->setQuery($query);

$results = $db->loadObjectList();
$results = $db->loadObject();

$old_stage_id = $results[0]->stage_id;
$old_stage_id = $results->stage_id;

$oldExtension = $results[0]->extension;
$oldExtension = $results->extension;

$query->clear()
->insert($db->quoteName('#__workflow_associations'))
Expand Down

0 comments on commit 7c9d9bb

Please sign in to comment.