mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +02:00
Don't forget to drop old fields after post
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@61 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -78,7 +78,7 @@ $collations = collations();
|
|||||||
<?php
|
<?php
|
||||||
$i=1;
|
$i=1;
|
||||||
foreach ($row["fields"] as $field) {
|
foreach ($row["fields"] as $field) {
|
||||||
if (strlen($field["field"])) {
|
if (strlen($field["field"]) || strlen($field["orig"])) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo htmlspecialchars($field[($_POST ? "orig" : "field")]); ?>" /><input name="fields[<?php echo $i; ?>][field]" value="<?php echo htmlspecialchars($field["field"]); ?>" maxlength="64" /></th>
|
<th><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo htmlspecialchars($field[($_POST ? "orig" : "field")]); ?>" /><input name="fields[<?php echo $i; ?>][field]" value="<?php echo htmlspecialchars($field["field"]); ?>" maxlength="64" /></th>
|
||||||
|
Reference in New Issue
Block a user