diff options
| author | tri <tri@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-08-11 09:48:44 +0000 |
|---|---|---|
| committer | tri <tri@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-08-11 09:48:44 +0000 |
| commit | cc2528ea0d1e34c7ceadbe1ff809ef0622c997d5 (patch) | |
| tree | bbab60c1d72d336198446d7cae1f19ab6144970a /roundcubemail | |
| parent | c7069400e779a1990b7ad8b958eb1e9560d10673 (diff) | |
Improvements for SVN 306 Bug (Ticket #1483950)
git-svn-id: https://svn.roundcube.net/trunk@308 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/SQL/mysql.update.sql | 6 | ||||
| -rw-r--r-- | roundcubemail/program/steps/addressbook/show.inc | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql index 80deb84d2..c01e8f150 100644 --- a/roundcubemail/SQL/mysql.update.sql +++ b/roundcubemail/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/roundcubemail/program/steps/addressbook/show.inc b/roundcubemail/program/steps/addressbook/show.inc index 960ea1c45..c5192b368 100644 --- a/roundcubemail/program/steps/addressbook/show.inc +++ b/roundcubemail/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 +?> |
