relational scheme, support request #739752
This commit is contained in:
@@ -16,6 +16,9 @@ $Source$
|
|||||||
to the PEAR call() funktion.
|
to the PEAR call() funktion.
|
||||||
* index.php3: Bug #743856. Fixed trinary operator, thanks to Virgile
|
* index.php3: Bug #743856. Fixed trinary operator, thanks to Virgile
|
||||||
Petit!
|
Petit!
|
||||||
|
* tbl_relation.php3: Will now not show a selected display field, if
|
||||||
|
none has been set yet for a table to not let users think, the key
|
||||||
|
is set.
|
||||||
|
|
||||||
2003-05-26 Michal Cihar <nijel@users.sourceforge.net>
|
2003-05-26 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* lang/czech: sorted.
|
* lang/czech: sorted.
|
||||||
|
@@ -71,11 +71,17 @@ if ($cfgRelation['displaywork']
|
|||||||
&& isset($submit_show) && $submit_show == 'true') {
|
&& isset($submit_show) && $submit_show == 'true') {
|
||||||
|
|
||||||
if ($disp) {
|
if ($disp) {
|
||||||
$upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['table_info'])
|
if ($display_field != '') {
|
||||||
. ' SET display_field = \'' . PMA_sqlAddslashes($display_field) . '\''
|
$upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['table_info'])
|
||||||
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
|
. ' SET display_field = \'' . PMA_sqlAddslashes($display_field) . '\''
|
||||||
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'';
|
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
|
||||||
} else {
|
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'';
|
||||||
|
} else {
|
||||||
|
$upd_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['table_info'])
|
||||||
|
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
|
||||||
|
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'';
|
||||||
|
}
|
||||||
|
} elseif ($display_field != '') {
|
||||||
$upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['table_info'])
|
$upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['table_info'])
|
||||||
. '(db_name, table_name, display_field) '
|
. '(db_name, table_name, display_field) '
|
||||||
. ' VALUES('
|
. ' VALUES('
|
||||||
@@ -255,6 +261,7 @@ if ($col_rs && mysql_num_rows($col_rs) > 0) {
|
|||||||
|
|
||||||
<p><?php echo $strChangeDisplay; ?></p>
|
<p><?php echo $strChangeDisplay; ?></p>
|
||||||
<select name="display_field" onchange="this.form.submit();">
|
<select name="display_field" onchange="this.form.submit();">
|
||||||
|
<option value="">---</option>
|
||||||
<?php
|
<?php
|
||||||
echo "\n";
|
echo "\n";
|
||||||
mysql_data_seek($col_rs, 0);
|
mysql_data_seek($col_rs, 0);
|
||||||
|
Reference in New Issue
Block a user