| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' REMOVE Issue
|
| 119 |
ghuddy |
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
11 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
12 |
%>
|
|
|
13 |
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
' Set rfile parameter. This is a return page after Login
|
|
|
22 |
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
|
|
|
23 |
'------------ ACCESS CONTROL ------------------
|
|
|
24 |
%>
|
|
|
25 |
<!--#include file="_access_control_login.asp"-->
|
|
|
26 |
<!--#include file="_access_control_general.asp"-->
|
|
|
27 |
<!--#include file="_access_control_project.asp"-->
|
|
|
28 |
<%
|
|
|
29 |
'------------ Variable Definition -------------
|
|
|
30 |
'------------ Constants Declaration -----------
|
|
|
31 |
'------------ Variable Init -------------------
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<%
|
| 129 |
ghuddy |
35 |
Sub Remove_Issue( NNpv_id, NNiss_link )
|
| 119 |
ghuddy |
36 |
|
| 129 |
ghuddy |
37 |
objEH.TryORA ( OraSession )
|
|
|
38 |
On Error Resume Next
|
|
|
39 |
|
|
|
40 |
OraDatabase.ExecuteSQL _
|
|
|
41 |
"DELETE FROM jira_issues WHERE pv_id = "& NNpv_id &" AND iss_key = '"& NNiss_link&"'"
|
|
|
42 |
|
|
|
43 |
OraDatabase.ExecuteSQL _
|
|
|
44 |
"BEGIN Log_Action ( "& NNpv_id &", 'jira_issue_removed', "& objAccessControl.UserId &", 'Issue Key: "& NNiss_link &" Removed' ); END;"
|
|
|
45 |
|
|
|
46 |
objEH.CatchORA ( OraSession )
|
| 119 |
ghuddy |
47 |
End Sub
|
|
|
48 |
%>
|
|
|
49 |
<%
|
|
|
50 |
'----------------------- MAIN LINE ---------------------------
|
|
|
51 |
|
|
|
52 |
'--- Process submition ---
|
|
|
53 |
If (Request("pv_id") <> "") AND (Request("iss_link") <> "") Then
|
| 129 |
ghuddy |
54 |
' All mandatory parameters FOUND
|
|
|
55 |
Call Remove_Issue( Request("pv_id"), Request("iss_link") )
|
|
|
56 |
Response.Redirect("fixed_issues.asp?hidenv=true&pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
57 |
Else
|
| 129 |
ghuddy |
58 |
Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
|
| 4955 |
dpurdie |
59 |
Response.write QSTR_FullQuery
|
| 119 |
ghuddy |
60 |
End If
|
|
|
61 |
%>
|
|
|
62 |
|
|
|
63 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
64 |
<!--#include file="common/destructor.asp"-->
|