diff --git a/editing.inc.php b/editing.inc.php
index 0eefaf91..cbac8fa5 100644
--- a/editing.inc.php
+++ b/editing.inc.php
@@ -112,7 +112,7 @@ function edit_fields($fields, $collations, $type = "TABLE") {
$column_comments = false;
foreach ($fields as $i => $field) {
$i++;
- $display = ($_POST["add"][$i-1] || (isset($field["field"]) && !$_POST["drop_col"][$i]));
+ $display = (isset($_POST["add"][$i-1]) || (isset($field["field"]) && !$_POST["drop_col"][$i]));
?>
>
diff --git a/tests/19-procedures.html b/tests/19-procedures.html
new file mode 100644
index 00000000..45959ba0
--- /dev/null
+++ b/tests/19-procedures.html
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+Procedures
+
+
+
+
+Procedures
+
+
+ open
+ /phpMinAdmin/?db=selenium&procedure=
+
+
+
+ clickAndWait
+ add[0]
+
+
+
+ type
+ fields[1][field]
+ interpret_name
+
+
+ select
+ fields[1][type]
+ label=varchar
+
+
+ click
+ add[1]
+
+
+
+ type
+ fields[1][length]
+ 50
+
+
+ type
+ fields[1.1][field]
+ album_name
+
+
+ select
+ fields[1.1][type]
+ label=varchar
+
+
+ type
+ fields[1.1][length]
+ 50
+
+
+ type
+ definition
+ BEGIN SELECT id INTO @interpret FROM interprets WHERE interpret = interpret_name; IF @interpret IS NULL THEN INSERT INTO interprets (interpret) VALUES (interpret_name); SET @interpret = LAST_INSERT_ID(); END IF; INSERT INTO albums (interpret, album) VALUES (@interpret, album_name); END
+
+
+ type
+ name
+ insert_album
+
+
+ clickAndWait
+ //input[@value='Save']
+
+
+
+ verifyTextPresent
+ Routine has been created.
+
+
+
+ clickAndWait
+ link=insert_album
+
+
+
+ type
+ fields[0]
+ Michael Jackson
+
+
+ type
+ fields[1]
+ Dangerous
+
+
+ clickAndWait
+ //input[@value='Call']
+
+
+
+ assertTextPresent
+ Routine has been called, 1 row affected.
+
+
+
+ clickAndWait
+ link=selenium
+
+
+
+ clickAndWait
+ link=Alter
+
+
+
+ clickAndWait
+ drop
+
+
+
+ assertConfirmation
+ Are you sure?
+
+
+
+ verifyTextPresent
+ Routine has been dropped.
+
+
+
+
+
+
diff --git a/tests/selenium.html b/tests/selenium.html
index 57d5f552..b1ad560d 100644
--- a/tests/selenium.html
+++ b/tests/selenium.html
@@ -27,6 +27,7 @@
Process list
Export
Events
+Procedures
Logout