diff options
author | svncommit <devs@roundcube.net> | 2006-08-11 09:48:44 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-08-11 09:48:44 +0000 |
commit | c145602b6ed42727ede5b8aef9912233b7be049d (patch) | |
tree | b460dce2a0be50197dd8f015b13f8784f915219b | |
parent | 87e3ed6ed09a9fcd3cab45a6ce674396e51b95bb (diff) |
Improvements for SVN 306 Bug (Ticket #1483950)
-rw-r--r-- | SQL/mysql.update.sql | 6 | ||||
-rw-r--r-- | program/steps/addressbook/show.inc | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index 80deb84d2..c01e8f150 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -1,11 +1,9 @@ -- RoundCube Webmail update script for MySQL databases -- Updates from version 0.1-20051007 - ALTER TABLE `contacts` ADD `name` varchar(128) NOT NULL default ''; - ALTER TABLE `contacts` ADD `email` varchar(128) NOT NULL default ''; - ALTER TABLE `contacts` ADD `first_name` varchar(128) NOT NULL default ''; + ALTER TABLE `contacts` CHANGE `firstname` `first_name` VARCHAR( 128 ) NOT NULL; ALTER TABLE `contacts` CHANGE `surname` `last_name` VARCHAR( 128 ) NOT NULL; + ALTER TABLE `contacts` ADD `middle_name` varchar(128) NOT NULL default ''; - ALTER TABLE `contacts` ADD `last_name` varchar(128) NOT NULL default ''; ALTER TABLE `contacts` ADD `edu_title` varchar(128) NOT NULL default ''; ALTER TABLE `contacts` ADD `addon` varchar(128) NOT NULL default ''; ALTER TABLE `contacts` ADD `nickname` varchar(128) NOT NULL default ''; diff --git a/program/steps/addressbook/show.inc b/program/steps/addressbook/show.inc index 960ea1c45..c5192b368 100644 --- a/program/steps/addressbook/show.inc +++ b/program/steps/addressbook/show.inc @@ -13,6 +13,7 @@ | | +-----------------------------------------------------------------------+ | Author: Thomas Bruederli <roundcube@gmail.com> | + | Author: Tobias 'tri' Richter <tobias@datenwerkstatt-richter.de | +-----------------------------------------------------------------------+ $Id$ @@ -53,7 +54,7 @@ function rcmail_contact_details($attrib) // return the complete address record as table $out = "<table>\n\n"; - $a_show_cols = array('name', 'firstname', 'surname', 'email'); + $a_show_cols = array('name', 'email', 'first_name', 'middle_name', 'last_name', 'edu_title', 'addon', 'nickname', 'company', 'organisation', 'department', 'job_title', 'note', 'tel_work1_voice', 'tel_work2_voice', 'tel_home1_voice', 'tel_home2_voice', 'tel_cell_voice', 'tel_car_voice', 'tel_pager_voice', 'tel_additional', 'tel_work_fax', 'tel_home_fax', 'tel_isdn', 'tel_preferred', 'tel_telex', 'work_street', 'work_zip', 'work_city', 'work_region', 'work_country', 'home_street', 'home_zip', 'home_city', 'home_region', 'home_country', 'postal_street', 'postal_zip', 'postal_city', 'postal_region', 'postal_country', 'url_work', 'role', 'birthday', 'rev', 'lang'); foreach ($a_show_cols as $col) { if ($col=='email' && $CONTACT_RECORD[$col]) @@ -77,4 +78,4 @@ function rcmail_contact_details($attrib) parse_template('showcontact'); -?>
\ No newline at end of file +?> |