#140 'user_id' key missing in pull_contact_fields()

closed-accepted
David Gaya
None
5
2007-09-18
2007-08-02
Tobias
No

<pre>
file: include/utils-contacts.php
function: pull_contact_fields()
</pre>

The 'user_id' key is missing in the array $contact_fields. As a consequence, newly created contact records have their user_id set to the session_user_id. This way it is not possible to select a special user_id as "Owner" of the record when creating it.

Discussion

  • Tobias
    Tobias
    2007-08-02

    Patch for utils-contacts.php

     
  • David Gaya
    David Gaya
    2007-09-18

    • assigned_to: nobody --> myelocyte
     
  • David Gaya
    David Gaya
    2007-09-18

    Logged In: YES
    user_id=268897
    Originator: NO

    You are rigth. This patch is a fix.

    To reproduce the bug:
    - go to any company
    - press the button to create a new contact
    - fill in all necessary data, and change the owner to some other user that is not yours (for example user1).
    - save the contact
    - go back to the newly created contact and you find you are the owner!!

    I will update CVS.
    David Gaya

     
  • David Gaya
    David Gaya
    2007-09-18

    Logged In: YES
    user_id=268897
    Originator: NO

    Fixed in CVS, include/utils-contacts.php revision 1.32.
    David

     
  • David Gaya
    David Gaya
    2007-09-18

    • status: open --> closed-accepted