* Fix bug #24920.
This commit is contained in:
@@ -419,12 +419,7 @@ class tree extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$this->tree->updateOrder($_POST['orders']);
|
||||
if($viewType == 'story' and !empty($rootID) and !empty($moduleID))
|
||||
{
|
||||
$sql = "objectType = 'module' and objectID = $moduleID and date='" . helper::now() . "' and action = 'moved'" ;
|
||||
$actions = $this->loadModel('action')->getBySQL($sql, 'id_desc');
|
||||
if(count($actions) == 0) $this->action->create('module', $rootID, 'moved', '', $moduleID);
|
||||
}
|
||||
if($viewType == 'story' and !empty($rootID) and !empty($moduleID)) $this->action->create('module', $rootID, 'moved', '', $moduleID);
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ $(function()
|
||||
{
|
||||
hiddenwin.location.href = action.linkTemplate.format(item.id);
|
||||
}
|
||||
else if(action.type === 'sort')
|
||||
else if(action.type === 'sort' && event.item == null)
|
||||
{
|
||||
var orders = {};
|
||||
$('#modulesTree').find('li:not(.tree-action-item)').each(function()
|
||||
|
||||
Reference in New Issue
Block a user