Ignore:
Timestamp:
Nov 23, 2010 3:18:39 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
617623f
Parents:
57388f9
Message:
  • Fix adding contact group record after creating a group
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/addressbook/groups.inc

    rc50d887 r1f052f0  
    8080  if ($created && $OUTPUT->ajax_call) { 
    8181    $OUTPUT->show_message('groupcreated', 'confirmation'); 
    82     $OUTPUT->command('insert_contact_group', array('source' => $created)); 
     82    $OUTPUT->command('insert_contact_group', array( 
     83      'source' => $source, 'id' => $created['id'], 'name' => $created['name'])); 
    8384  } 
    8485  else if (!$created) { 
     
    99100  if ($newname && $OUTPUT->ajax_call) { 
    100101    $OUTPUT->show_message('grouprenamed', 'confirmation'); 
    101     $OUTPUT->command('update_contact_group', array('source' => $source, 'id' => $gid, 'name' => $newname)); 
     102    $OUTPUT->command('update_contact_group', array( 
     103      'source' => $source, 'id' => $gid, 'name' => $newname)); 
    102104  } 
    103105  else if (!$newname) 
Note: See TracChangeset for help on using the changeset viewer.