Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	    MAKE APPROVED FOR AUTOMATED BUILD
5
'               --- PROCESS FORM ---
6
'=====================================================
7
%>
8
<%
9
Option explicit
10
' Good idea to set when using redirect
11
Response.Expires = 0	' always load the page, dont store
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"-->
123 ghuddy 20
<!--#include file="common/common_make_release_subs.asp"-->
119 ghuddy 21
<%
22
'------------ ACCESS CONTROL ------------------
23
%>
24
<!--#include file="_access_control_login.asp"-->
25
<!--#include file="_access_control_general.asp"-->
26
<!--#include file="_access_control_project.asp"-->
27
<%
28
'------------ Variable Definition -------------
29
Dim parPv_id
30
Dim parRfile
31
Dim retParameters
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parPv_id = Request("pv_id")
35
parRfile = Request("rfile")
36
'----------------------------------------------
37
%>
38
<%
39
'-----------------------  MAIN LINE  ---------------------------
40
 
41
'--- Process submission ---
123 ghuddy 42
If ( parRtag_id <> "") AND (parPv_id <> "") Then
5146 dpurdie 43
 
44
   If NOT canAddToRelease(Request("rtag_id"),Request("pv_id") ) Then
45
        Call RaiseMsg ( enum_MSG_ERROR, _
46
                        "<h3>Cannot progress a package that is a part of an SDK.</h3>" &_
47
                        "<p>If the package is a WIP, then consider moving it to a different Release." _
48
                      )
49
   End If
50
 
129 ghuddy 51
   If PUBLIC_ApproveRelease (parRtag_id, parPv_id, retParameters, FALSE) = TRUE Then
123 ghuddy 52
      If parRfile <> "" Then
53
         Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
119 ghuddy 54
		Else
123 ghuddy 55
         Response.Redirect ( "dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
119 ghuddy 56
		End If
57
	Else
123 ghuddy 58
      'This is currently done inside Make_This_PVID_Approved()
59
      'Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id  &"|"& retParameters &"|"& "N" )
119 ghuddy 60
	End If
61
Else
1376 dpurdie 62
	Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
4955 dpurdie 63
	Response.write QSTR_FullQuery
119 ghuddy 64
End If
65
%>
66
 
67
<!-- DESTRUCTOR ------->
123 ghuddy 68
<!--#include file="common/destructor.asp"-->