Results 1 to 2 of 2

Thread: DEFAULTING an assign to button

  1. #1
    Echoreef is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    15

    Default DEFAULTING an assign to button

    i would like to assign all leads to one user, as i have approx 80 users all creating info for one user to process is this possible to default the assign to button in the leads tab to a specific user for e.g "team leader"

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: DEFAULTING an assign to button

    Quote Originally Posted by Echoreef
    i would like to assign all leads to one user, as i have approx 80 users all creating info for one user to process is this possible to default the assign to button in the leads tab to a specific user for e.g "team leader"

    On the EditView.php page, you can grab the leads.assigned_user_id value.
    Not looking at the code I think it's $focus->assigned_user_id;

    Do a check to see if it's blank or '' .
    If it is, assign it to the 36 character long id of the person you want them assigned to.
    As long as you do all of this before they call main.parse (I think) and main.out (??) you should be OK.
    I think that will work but if it doesn't,
    go to the template and assign the value that is used on the EditView.html to the value of the id.
    something like this, again, not looking at code
    $xtpl->assign($variable_name,$focus->assigned_user_id);
    You shouldn't need the template assignment.

    Or, you could make the id default value within mysql.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •