From a50e725aac643dc658f30575f88623ead48d28ff Mon Sep 17 00:00:00 2001
From: jollytoad
Date: Tue, 28 Sep 2004 13:08:39 +0000
Subject: [PATCH] Fixed dropping of rules.
---
rules.php | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/rules.php b/rules.php
index f3d3fc10..22147fc3 100644
--- a/rules.php
+++ b/rules.php
@@ -3,7 +3,7 @@
/**
* List rules on a table OR view
*
- * $Id: rules.php,v 1.23 2004/09/07 13:58:21 jollytoad Exp $
+ * $Id: rules.php,v 1.24 2004/09/28 13:08:39 jollytoad Exp $
*/
// Include application functions
@@ -91,15 +91,16 @@
if ($confirm) {
$misc->printTrail($_REQUEST['subject']);
- $misc->printTitle($lang['strdrop'].'pg.rule.drop');
-
+ $misc->printTitle($lang['strdrop'],'pg.rule.drop');
+
echo "", sprintf($lang['strconfdroprule'], $misc->printVal($_REQUEST['rule']),
- $misc->printVal($_REQUEST[$_REQUEST['subject']])), "
\n";
+ $misc->printVal($_REQUEST[$_REQUEST['reltype']])), "
\n";
echo "\n";
}
else {
- $status = $data->dropRule($_POST['rule'], $_POST['relation'], isset($_POST['cascade']));
+ $status = $data->dropRule($_POST['rule'], $_POST[$_POST['subject']], isset($_POST['cascade']));
if ($status == 0)
doDefault($lang['strruledropped']);
else
@@ -154,7 +155,7 @@
$actions = array(
'drop' => array(
'title' => $lang['strdrop'],
- 'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&{$subject}={$object}&subject={$subject}",
+ 'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&reltype={$subject}&{$subject}={$object}&subject=rule&",
'vars' => array('rule' => 'rulename'),
),
);
--
2.39.5