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=
clickAndWaitadd[0]
typefields[1][field]interpret_name
selectfields[1][type]label=varchar
clickadd[1]
typefields[1][length]50
typefields[1.1][field]album_name
selectfields[1.1][type]label=varchar
typefields[1.1][length]50
typedefinitionBEGIN
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
typenameinsert_album
clickAndWait//input[@value='Save']
verifyTextPresentRoutine has been created.
clickAndWaitlink=insert_album
typefields[0]Michael Jackson
typefields[1]Dangerous
clickAndWait//input[@value='Call']
assertTextPresentRoutine has been called, 1 row affected.
clickAndWaitlink=selenium
clickAndWaitlink=Alter
clickAndWaitdrop
assertConfirmationAre you sure?
verifyTextPresentRoutine 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