From d0510126527b8534ea39df4e84bc91a957d13a33 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 5 Feb 2005 20:17:04 +0000 Subject: [PATCH] remove comments handling from relation view --- ChangeLog | 3 +++ tbl_relation.php | 49 ++---------------------------------------------- 2 files changed, 5 insertions(+), 47 deletions(-) diff --git a/ChangeLog b/ChangeLog index c582d000c..0fb894b16 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-02-05 Marc Delisle + * tbl_relation.php: removed comments handling (pmadb-style) from relation view + 2005-02-04 Michal Čihař * tbl_change.php: Fix TIMESTAMP editing on MySQL 4.1 (bug #1114120). diff --git a/tbl_relation.php b/tbl_relation.php index 17e26f102..f13f5869d 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -252,14 +252,6 @@ if ($cfgRelation['displaywork'] } } // end if -if ($cfgRelation['commwork'] - && isset($submit_comm) && $submit_comm == 'true') { - foreach ($comment AS $key => $value) { - // garvin: I exported the snippet here to a function (relation.lib.php) , so it can be used multiple times throughout other pages where you can set comments. - PMA_setComment($db, $table, $key, $value); - } // end while (transferred data) -} // end if (commwork) - // If we did an update, refresh our data if (isset($submit_rel) && $submit_rel == 'true') { if ($cfgRelation['relwork']) { @@ -272,9 +264,6 @@ if (isset($submit_rel) && $submit_rel == 'true') { if ($cfgRelation['displaywork']) { $disp = PMA_getDisplayField($db, $table); } -if ($cfgRelation['commwork']) { - $comments = PMA_getComments($db, $table); -} /** @@ -579,43 +568,9 @@ if ($col_rs && PMA_DBI_num_rows($col_rs) > 0) { echo $tbl_type=='INNODB' ? '' : "\n\n" . ' ' . "\n"; } // end if (displayworks) - if ($cfgRelation['commwork']) { - echo $tbl_type=='INNODB' ? "\n" : '       ' . "\n" - . ' ' . "\n\n"; - ?> -
- - +// comments handling removed from this page; now only available on +// the field properties page - - - - - - - - - - - - - -
- -
- -
-
- ' . "\n" . '' . "\n\n"; } // end if (we have columns in this table)