Re: Addressbook / Edit=>General Data: "home email" & "home phone" instead

spidergen <[email protected]>
Newsgroups gmane.comp.web.phpgroupware.general
Organization phpGroupware Forums
Message-ID <[email protected]>

I found a solution by myself:

Change the "class.uiaddressbook.inc.php" as followed:

Line 1210
$this->set_form_fields(array
						(
							1 	=> array('Prefix', 'entry[per_prefix]', $fields['per_prefix']),
							2 	=> array('First Name', 'entry[per_first_name]', $fields['per_first_name']),
							3 	=> array('Middle Name', 'entry[per_middle_name]', $fields['per_middle_name']),
							4 	=> array('Last Name', 'entry[per_last_name]', $fields['per_last_name']),
							5 	=> array('Title', 'entry[per_title]', $fields['per_title']),
							6 	=> array('Department', 'entry[per_department]', $fields['per_department']),
							/**
							* 2007/08/10: MT - added home email, home phone, cell phone and website            
							*/
							7 	=> array('Home EMail', 'entry[email_home]', $fields['email_home']),
							8 	=> array('Business Email', 'entry[email]', $fields['email']),
							9	=> array('Home Phone', 'entry[phone_home]', $fields['phone_home']),
							10	=> array('Business Phone', 'entry[wphone]', $fields['wphone']),
							11	=> array('cell phone', 'entry[tel_cell]', $fields['tel_cell']),
							12	=> array('Website', 'entry[url]', $fields['url']),
							13	=> array('Birthday', $bday, 'special'),
							14 	=> array('Private', $access_check, 'special')
						));

Line 1930:
/**
				* 2007/08/10: MT - added home email, home phone, cell phone and website"               
				*/
				$entry['email'] = $comms['comm_data']['work email'];
				$entry['wphone'] = $comms['comm_data']['work phone'];
				$entry['email_home'] = $comms['comm_data']['home email'];
				$entry['phone_home'] = $comms['comm_data']['home phone'];
				$entry['tel_cell'] = $comms['comm_data']['mobile (cell) phone'];
				$entry['url'] = $comms['comm_data']['website'];

Line 2090:
				//get emain and phone info from comms var
				$comms = $this->read_tab_session($this->tab_comms);
				$comms['comm_data']['work email'] = $entry['email'];
				$comms['comm_data']['work phone'] = $entry['wphone'];
				//2007/08/10: MT - get home email, home phone, cell phone and website from comms var
				$comms['comm_data']['home email'] = $entry['email_home'];
				$comms['comm_data']['home phone'] = $entry['phone_home'];
				$comms['comm_data']['mobile (cell) phone'] = $entry['tel_cell'];
				$comms['comm_data']['website'] = $entry['url'];Sent from the phpGroupWare forums @ http://forums.phpGroupWare.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.