Permalink
Browse files

Link table names in SQL queries

  • Loading branch information...
1 parent 5f9f661 commit b79a28f62b5f9319bb7f700ddbede6940b7840ab @vrana committed Jun 8, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −1 adminer/include/editing.inc.php
  2. +1 −0 changes.txt
View
2 adminer/include/editing.inc.php
@@ -214,7 +214,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
<?php edit_type("fields[$i]", $field, $collations, $foreign_keys); ?>
<?php if ($type == "TABLE") { ?>
<td><?php echo checkbox("fields[$i][null]", 1, $field["null"]); ?>
-<td><input type="radio" name="auto_increment_col" value="<?php echo $i; ?>"<?php if ($field["auto_increment"]) { ?> checked<?php } ?>>
+<td><input type="radio" name="auto_increment_col" value="<?php echo $i; ?>"<?php if ($field["auto_increment"]) { ?> checked<?php } ?> onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }">
<td class="hidden"><?php echo checkbox("fields[$i][has_default]", 1, $field["has_default"]); ?><input name="fields[<?php echo $i; ?>][default]" value="<?php echo h($field["default"]); ?>" onchange="this.previousSibling.checked = true;">
<?php echo (support("comment") ? "<td" . ($comments ? "" : " class='hidden'") . "><input name='fields[$i][comment]' value='" . h($field["comment"]) . "' maxlength='255'>" : ""); ?>
<?php } ?>
View
1 changes.txt
@@ -13,6 +13,7 @@ Autofocus username in login form
Disable spellchecking in SQL textareas
Display auto_increment value of inserted item
Allow disabling auto_increment value export
+Prefill auto_increment column name
Link last page above data in select
Link table names in SQL queries
Japanese translation

0 comments on commit b79a28f

Please sign in to comment.