svncommit
2006-08-11 c145602b6ed42727ede5b8aef9912233b7be049d
Improvements for SVN 306 Bug (Ticket #1483950)



2 files modified
11 ■■■■ changed files
SQL/mysql.update.sql 6 ●●●●● patch | view | raw | blame | history
program/steps/addressbook/show.inc 5 ●●●●● patch | view | raw | blame | history
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 '';
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 @@
  // 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 @@
parse_template('showcontact');
?>
?>