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

FIX #7144 check on close date added for buttons display

parent 56a130ab
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,7 @@ else ...@@ -212,7 +212,7 @@ else
<input type="hidden" name="id" id="id" value="<?php functions::xecho($case_id);?>" /> <input type="hidden" name="id" id="id" value="<?php functions::xecho($case_id);?>" />
<p align="center"> <p align="center">
<?php <?php
if ($core_tools->test_service('update_case', 'cases',false) == 1) if ($core_tools->test_service('update_case', 'cases',false) == 1 && $case_indexes["case_closing_date"] == NULL)
{ ?> { ?>
<input type="submit" class="button" value="<?php echo _MODIFY_DOC;?>" name="submit_index_doc" /> <input type="submit" class="button" value="<?php echo _MODIFY_DOC;?>" name="submit_index_doc" />
<?php <?php
...@@ -223,7 +223,7 @@ else ...@@ -223,7 +223,7 @@ else
<input type="button" class="button" value="<?php echo _JOIN_RES_ON_THIS_CASE;?>" name="join_res" onclick="window.open('<?php echo $_SESSION['config']['businessappurl'];?>index.php?display=true&module=cases&page=search_adv_for_cases&searched_item=res_id&searched_value=<?php functions::xecho($case_indexes['case_id']);?>','', 'scrollbars=yes,menubar=no,toolbar=no,resizable=yes,status=no,width=1020,height=710');"/> <input type="button" class="button" value="<?php echo _JOIN_RES_ON_THIS_CASE;?>" name="join_res" onclick="window.open('<?php echo $_SESSION['config']['businessappurl'];?>index.php?display=true&module=cases&page=search_adv_for_cases&searched_item=res_id&searched_value=<?php functions::xecho($case_indexes['case_id']);?>','', 'scrollbars=yes,menubar=no,toolbar=no,resizable=yes,status=no,width=1020,height=710');"/>
<?php <?php
}*/ }*/
if ($core_tools->test_service('close_case', 'cases',false) == 1) if ($core_tools->test_service('close_case', 'cases',false) == 1 && $case_indexes["case_closing_date"] == NULL)
{ ?> { ?>
<input type="button" class="button" value="<?php echo _CLOSE_THIS_CASE;?>" name="join_res" onclick="window.location.href='<?php echo $_SESSION['config']['businessappurl'];?>index.php?display=true&module=cases&page=db_close_case&case_id=<?php functions::xecho($case_indexes['case_id']);?>' "/> <input type="button" class="button" value="<?php echo _CLOSE_THIS_CASE;?>" name="join_res" onclick="window.location.href='<?php echo $_SESSION['config']['businessappurl'];?>index.php?display=true&module=cases&page=db_close_case&case_id=<?php functions::xecho($case_indexes['case_id']);?>' "/>
<?php <?php
......
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