Subversion Repositories DevTools

Rev

Rev 5506 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
5957 dpurdie 4
' MAKE APPROVED FOR AUTOMATED BUILD
5
' --- PROCESS FORM ---
119 ghuddy 6
'=====================================================
7
%>
8
<%
9
Option explicit
10
' Good idea to set when using redirect
5957 dpurdie 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"-->
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
5957 dpurdie 53
         Call Destroy_All_Objects
123 ghuddy 54
         Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
5957 dpurdie 55
        Else
56
         Call Destroy_All_Objects
123 ghuddy 57
         Response.Redirect ( "dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
5957 dpurdie 58
        End If
59
    Else
123 ghuddy 60
      'This is currently done inside Make_This_PVID_Approved()
61
      'Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id  &"|"& retParameters &"|"& "N" )
5957 dpurdie 62
    End If
119 ghuddy 63
Else
5957 dpurdie 64
    Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
65
    Response.write QSTR_FullQuery
119 ghuddy 66
End If
67
%>
68
<!-- DESTRUCTOR ------->
123 ghuddy 69
<!--#include file="common/destructor.asp"-->