Skip to content
Snippets Groups Projects
Commit 3d9eddbd authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #7747 dissociate document is possible

parent 76de37d2
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,23 @@ if (($core_tools->test_service('join_res_case', 'cases', false) == 1) || ($core_ ...@@ -112,6 +112,23 @@ if (($core_tools->test_service('join_res_case', 'cases', false) == 1) || ($core_
case_id.value = '<?php functions::xecho($return_description['case_id'] ); ?>'; case_id.value = '<?php functions::xecho($return_description['case_id'] ); ?>';
case_label.value = '<?php echo addslashes($return_description['case_label']); ?>'; case_label.value = '<?php echo addslashes($return_description['case_label']); ?>';
case_description.value = '<?php echo addslashes($return_description['case_description']); ?>'; case_description.value = '<?php echo addslashes($return_description['case_description']); ?>';
lang_unlink_case = '<?php echo addslashes(_UNLINK_CASE);?>';
url_script = '<?php echo $_SESSION['config']['businessappurl']?>'+'index.php?display=true&module=cases&page=unlink_case';
case_id = '<?php echo $return_description['case_id']; ?>';
res_id = '<?php echo $actual_res_id; ?>';
strOnClick = 'if(confirm(\"'+lang_unlink_case+'?\")){unlink_case(\''+url_script+'\','+case_id+','+res_id+');}';
var btn_unlink_case = $j(' <input/>').attr({
type : "button",
id : "btn_unlink_case",
onclick : strOnClick,
class : 'button',
value : lang_unlink_case
});
btn_search_case = window.opener.$j('#search_case');
btn_search_case.after(btn_unlink_case);
btn_search_case.after('<span> </span>');
} }
//self.close(); //self.close();
......
...@@ -9,7 +9,7 @@ function unlink_case(path_manage_script,case_id,res_id){ ...@@ -9,7 +9,7 @@ function unlink_case(path_manage_script,case_id,res_id){
onSuccess: function(answer){ onSuccess: function(answer){
eval('response='+answer.responseText); eval('response='+answer.responseText);
if(response){ if(response){
window.location.href='index.php?page=details&dir=indexing_searching&id='+res_id; window.top.location.href='index.php?page=details&dir=indexing_searching&id='+res_id;
}else{ }else{
alert('Something went wrong...'); alert('Something went wrong...');
} }
......
...@@ -73,7 +73,14 @@ if ($core_tools->test_service('join_res_case_in_process', 'cases', false) == 1) ...@@ -73,7 +73,14 @@ if ($core_tools->test_service('join_res_case_in_process', 'cases', false) == 1)
. 'index.php?display=true&module=cases&page=search_adv_for_cases' . 'index.php?display=true&module=cases&page=search_adv_for_cases'
. '&searched_item=res_id_in_process&searched_value=' . $_SESSION['doc_id'] . '&searched_item=res_id_in_process&searched_value=' . $_SESSION['doc_id']
. '\',\'\', \'scrollbars=yes,menubar=no,toolbar=no,resizable=yes,' . '\',\'\', \'scrollbars=yes,menubar=no,toolbar=no,resizable=yes,'
. 'status=no,width=1020,height=710\');"/></td>'; . 'status=no,width=1020,height=710\');"/>';
if($case_properties['case_id'] <> ''){
$frm_str .= ' <input type="button" class="button" name="btn_unlink_case" '
. 'id="btn_unlink_case" value="'._UNLINK_CASE.'"'
. 'onclick="if(confirm(\''.addslashes(_UNLINK_CASE).'?\')){unlink_case(\''.$_SESSION['config']['businessappurl'].'index.php?display=true&module=cases&page=unlink_case\','.$case_properties['case_id'].','. $res_id .');}"/>';
}
$frm_str .= '</td>';
} }
$frm_str .= '</tr>'; $frm_str .= '</tr>';
$frm_str .= '</table>'; $frm_str .= '</table>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment