1<?php 2# --------------------------------------------------------------------- 3# rth is a requirement, test, and bugtracking system 4# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net 5# This program is distributed under the terms and conditions of the GPL 6# See the README and LICENSE files for details 7#---------------------------------------------------------------------- 8# --------------------------------------------------------------------- 9# Test Step Edit Action Page 10# 11# $RCSfile: test_step_edit_action.php,v $ $Revision: 1.5 $ 12# --------------------------------------------------------------------- 13 14include"./api/include_api.php"; 15auth_authenticate_user(); 16 17$test_id = $_POST['test_id']; 18$test_step_id = $_POST['test_step_id']; 19//$test_version_id = $_POST['test_version_id']; 20$project_id = session_get_project_id(); 21$page = 'test_step_edit_page.php'; 22$error_page = 'test_step_edit_page.php?test_step_id='. $test_step_id .'&test_id='. $test_id; 23$redirect_page = 'test_detail_page.php?test_id='. $test_id .'&project_id='. $project_id; 24 25 26session_validate_form_set($_POST, $error_page); 27 28$info_step = "N"; 29if( isset($_POST['info_step']) ) { 30 31 $info_step = "Y"; 32} 33 34#added to every session_validate... mysql_real_escape_string(), because it doesnt work for session_validate...(fck-textfield) 35test_update_test_step( $test_id, 36 $test_step_id, 37 session_validate_form_get_field('location'), 38 mysql_real_escape_string(session_validate_form_get_field('step_action_required', "", session_use_FCKeditor())), 39 mysql_real_escape_string(session_validate_form_get_field('step_input', "", session_use_FCKeditor())), 40 mysql_real_escape_string(session_validate_form_get_field('step_expected_required', "", session_use_FCKeditor())), 41 $info_step ); 42 43session_validate_form_reset(); 44 45html_print_operation_successful( "add_test_step", $redirect_page ); 46 47 48# --------------------------------------------------------------------- 49# $Log: test_step_edit_action.php,v $ 50# Revision 1.5 2008/07/21 07:42:34 peter_thal 51# small bug fixes for test_detail_page linking parameter 52# 53# Revision 1.4 2008/07/03 09:30:27 peter_thal 54# enabled writing and saving backslashes in all fields 55# 56# Revision 1.3 2007/03/14 17:23:44 gth2 57# removing Test Input as a required field so that it's consistent witth the 58# test detail page. - gth 59# 60# Revision 1.2 2006/12/05 05:29:20 gth2 61# updates for 1.6.1 release 62# 63# Revision 1.1.1.1 2005/11/30 23:00:58 gth2 64# importing initial version - gth 65# 66# --------------------------------------------------------------------- 67 68?>