diff options
author | Marc Delisle <marc@infomarc.info> | 2012-03-30 20:32:16 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-03-30 20:32:16 +0400 |
commit | cdaa0ff3a0ac69c38c6be4d44483bfc130cdc1ec (patch) | |
tree | 57a0dfb9b4fae66d596ba91a076b6c1880923fd7 /tbl_relation.php | |
parent | d3b5a781a9406213359e5cfcc3aec92d83542218 (diff) |
Missing handling of POST variables
Diffstat (limited to 'tbl_relation.php')
-rw-r--r-- | tbl_relation.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tbl_relation.php b/tbl_relation.php index 3dd0e88cc5..d2f1c7ac52 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -22,6 +22,22 @@ $GLOBALS['js_include'][] = 'tbl_relation.js'; require_once 'libraries/tbl_common.php'; $url_query .= '&goto=tbl_sql.php'; +/** + * Sets globals from $_POST + */ +$post_params = array( + 'destination', + 'destination_foreign', + 'display_field', + 'fields_name', + 'on_delete', + 'on_update' +); +foreach ($post_params as $one_post_param) { + if (isset($_POST[$one_post_param])) { + $GLOBALS[$one_post_param] = $_POST[$one_post_param]; + } +} /** * Gets tables informations |