Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions libraries/src/Table/Nested.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,17 +555,8 @@ public function delete($pk = null, $children = true)
/** @var Asset $asset */
$asset = Table::getInstance('Asset', 'JTable', array('dbo' => $this->getDbo()));

// Lock the table for writing.
if (!$asset->_lock())
{
// Error message set in lock method.
return false;
}

if ($asset->loadByName($name))
{
$asset->_unlock();

// Delete the node in assets table.
if (!$asset->delete(null, $children))
{
Expand All @@ -577,7 +568,6 @@ public function delete($pk = null, $children = true)
else
{
$this->setError($asset->getError());
$asset->_unlock();

return false;
}
Expand Down