* Remove the unused code.

This commit is contained in:
hufangzhou
2022-05-12 13:37:11 +08:00
parent 80124c681e
commit d99acc8cf8
+2 -3
View File
@@ -125,14 +125,13 @@ class action extends control
public function hideOne($actionID)
{
$oldAction = $this->action->getById($actionID);
$extra = $oldAction->extra == ACTIONMODEL::BE_HIDDEN ? 'hidden' : 'all';
$this->action->hideOne($actionID);
$sameTypeObjects = $this->action->getTrashes($oldAction->objectType, $extra, 'id_desc', null);
$sameTypeObjects = $this->action->getTrashes($oldAction->objectType, 'all', 'id_desc', null);
$browseType = $sameTypeObjects ? $oldAction->objectType : 'all';
return print(js::locate($this->createLink('action', 'trash', "browseType=$browseType&type=$extra"), 'parent'));
return print(js::locate($this->createLink('action', 'trash', "browseType=$browseType"), 'parent'));
}
/**