Improvements for SVN 306 Bug (Ticket #1483950)

release-0.6
svncommit 19 years ago
parent 87e3ed6ed0
commit c145602b6e

@ -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 '';

@ -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');
?>
?>

Loading…
Cancel
Save