} $gui->top_checked = 'checked=checked'; $gui->bottom_checked = ''; $gui->old_container = $the_tc_node['parent_id']; // original container $gui->array_container = $the_xx; $gui->testcase_id = $args->tcase_id; $gui->name = $tc_info[0]['name']; $gui->tproject_id = $args->tproject_id; $smarty->assign('gui', $gui); $templateCfg = templateConfiguration('tcMove'); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); } else { if ($args->do_move) { $result = $tree_mgr->change_parent($args->tcase_id, $args->new_container_id); $tree_mgr->change_child_order($args->new_container_id, $args->tcase_id, $args->target_position, $cfg->exclude_node_types); $gui->refreshTree = $args->refreshTree; $gui->modify_tc_rights = $_SESSION['currentUser']->hasRight($db, "mgt_modify_tc", $args->tproject_id); // $tsuite_mgr->show($smarty,$args->tproject_id,$gui,$templateCfg->template_dir,$args->old_container_id); $identity = new stdClass(); $identity->tproject_id = $args->tproject_id; $identity->id = $args->old_container_id; $tsuite_mgr->show($smarty, $gui, $identity); } else { if ($args->do_copy) { $user_feedback = ''; $msg = ''; $options = array('check_duplicate_name' => config_get('check_names_for_duplicates'), 'action_on_duplicate_name' => config_get('action_on_duplicate_name'), 'copy_also' => $args->copy); $result = $tcase_mgr->copy_to($args->tcase_id, $args->new_container_id, $args->user_id, $options); $msg = $result['msg']; if ($result['status_ok']) {