fix bad drop bug for non-english languages. i thought we'd found all of these years...
authorchriskl <chriskl>
Wed, 1 Sep 2004 11:21:51 +0000 (11:21 +0000)
committerchriskl <chriskl>
Wed, 1 Sep 2004 11:21:51 +0000 (11:21 +0000)
constraints.php

index 0afd9cf5a5840e4769103f552e101e8cc027fc92..2afd003ca8c0a66e73a24c4fc3f974d4ab37adc2 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List constraints on a table
         *
-        * $Id: constraints.php,v 1.37 2004/08/30 10:15:48 soranzo Exp $
+        * $Id: constraints.php,v 1.38 2004/09/01 11:21:51 chriskl Exp $
         */
 
        // Include application functions
                        if ($data->hasDropBehavior()) {
                                echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
                        }
-                       echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\" />\n";
-                       echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\" />\n";
+                       echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
+                       echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                        echo "</form>\n";
                }
                else {
                        doCreate();
                        break;
                case 'drop':
-                       if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+                       if (isset($_POST['drop'])) doDrop(false);
                        else doDefault();
                        break;
                case 'confirm_drop':