Assign newly created contacts to the active group (#1486626) and fix group selection display (#1486619)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | =========================== |
| | | |
| | | - Fix address book/group selection (#1486619) |
| | | - Assign newly created contacts to the active group (#1486626) |
| | | - Added option not to mark messages as read when viewed in preview pane (#1485012) |
| | | - Allow plugins modify the Sent folder when composing (#1486548) |
| | | - Added optional (max_recipients) support to restrict total number of recipients per message (#1484542) |
| | |
| | | if ($col == 'ID' || $col == $this->primary_key) |
| | | { |
| | | $ids = !is_array($value) ? explode(',', $value) : $value; |
| | | $add_where[] = $this->primary_key.' IN ('.join(',', $ids).')'; |
| | | $add_where[] = 'c.' . $this->primary_key.' IN ('.join(',', $ids).')'; |
| | | } |
| | | else if ($strict) |
| | | $add_where[] = $this->db->quoteIdentifier($col).'='.$this->db->quote($value); |
| | |
| | | |
| | | $insert_id = $this->db->insert_id('contacts'); |
| | | } |
| | | |
| | | // also add the newly created contact to the active group |
| | | if ($insert_id && $this->group_id) |
| | | $this->add_to_group($this->group_id, $insert_id); |
| | | |
| | | return $insert_id; |
| | | } |
| | |
| | | this.reset_qsearch(); |
| | | |
| | | this.list_contacts(props); |
| | | this.enable_command('add', 'import', (this.env.address_sources && !this.env.address_sources[props].readonly)); |
| | | this.enable_command('add', 'import', (this.env.address_sources && !this.env.address_sources[this.env.source].readonly)); |
| | | } |
| | | break; |
| | | |
| | |
| | | else if (group != this.env.group) |
| | | page = this.env.current_page = 1; |
| | | |
| | | this.select_folder(src, this.env.source); |
| | | this.select_folder(group, this.env.group, 'rcmliG'); |
| | | this.select_folder((group ? 'G'+group : src), (this.env.group ? 'G'+this.env.group : this.env.source)); |
| | | |
| | | this.env.source = src; |
| | | this.env.group = group; |
| | |
| | | if (action && (cid || action=='add') && !this.drag_active) |
| | | { |
| | | this.set_busy(true); |
| | | target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_cid='+urlencode(cid) + add_url; |
| | | target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group)+'&_cid='+urlencode(cid) + add_url; |
| | | } |
| | | return true; |
| | | }; |
| | |
| | | |
| | | if (empty($EDIT_FORM)) { |
| | | $hiddenfields = new html_hiddenfield(array('name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC))); |
| | | $hiddenfields->add(array('name' => '_gid', 'value' => $CONTACTS->group_id)); |
| | | |
| | | if (($result = $CONTACTS->get_result()) && ($record = $result->first())) |
| | | $hiddenfields->add(array('name' => '_cid', 'value' => $record['ID'])); |