Changeset 8e3a603 in github
- Timestamp:
- Apr 13, 2010 3:24:09 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- ed60fef
- Parents:
- 6b01133
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_contacts.php (modified) (2 diffs)
-
program/js/app.js (modified) (3 diffs)
-
program/steps/addressbook/edit.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rbc49601 r8e3a603 2 2 =========================== 3 3 4 - Fix address book/group selection (#1486619) 5 - Assign newly created contacts to the active group (#1486626) 4 6 - Added option not to mark messages as read when viewed in preview pane (#1485012) 5 7 - Allow plugins modify the Sent folder when composing (#1486548) -
program/include/rcube_contacts.php
r04adaac r8e3a603 213 213 { 214 214 $ids = !is_array($value) ? explode(',', $value) : $value; 215 $add_where[] = $this->primary_key.' IN ('.join(',', $ids).')';215 $add_where[] = 'c.' . $this->primary_key.' IN ('.join(',', $ids).')'; 216 216 } 217 217 else if ($strict) … … 337 337 $insert_id = $this->db->insert_id('contacts'); 338 338 } 339 340 // also add the newly created contact to the active group 341 if ($insert_id && $this->group_id) 342 $this->add_to_group($this->group_id, $insert_id); 339 343 340 344 return $insert_id; -
program/js/app.js
rbc49601 r8e3a603 526 526 527 527 this.list_contacts(props); 528 this.enable_command('add', 'import', (this.env.address_sources && !this.env.address_sources[ props].readonly));528 this.enable_command('add', 'import', (this.env.address_sources && !this.env.address_sources[this.env.source].readonly)); 529 529 } 530 530 break; … … 3444 3444 page = this.env.current_page = 1; 3445 3445 3446 this.select_folder(src, this.env.source); 3447 this.select_folder(group, this.env.group, 'rcmliG'); 3446 this.select_folder((group ? 'G'+group : src), (this.env.group ? 'G'+this.env.group : this.env.source)); 3448 3447 3449 3448 this.env.source = src; … … 3517 3516 { 3518 3517 this.set_busy(true); 3519 target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_ cid='+urlencode(cid) + add_url;3518 target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group)+'&_cid='+urlencode(cid) + add_url; 3520 3519 } 3521 3520 return true; -
program/steps/addressbook/edit.inc
r57f0c81 r8e3a603 89 89 if (empty($EDIT_FORM)) { 90 90 $hiddenfields = new html_hiddenfield(array('name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC))); 91 $hiddenfields->add(array('name' => '_gid', 'value' => $CONTACTS->group_id)); 91 92 92 93 if (($result = $CONTACTS->get_result()) && ($record = $result->first()))
Note: See TracChangeset
for help on using the changeset viewer.
