Results 1 to 2 of 2

Thread: Removing "reports to"

  1. #1
    harlancrystal is offline Junior Member
    Join Date
    Dec 2007
    Location
    New York City
    Posts
    4

    Default Removing "reports to"

    CentOS, SugarCRM 4.5.1 and 5.0 CE, apache 2.x, php 5, mysql 5

    I have three users A, B, C.

    I set it so A reports to B, B reports to C, C reports to A.

    I thought this would be a good way to make sure the three top managers all keep on top of each other, but now sugar is complaining about it.

    Unfortunately, I don't see any way to remove the "reports to" field without setting to someone else.

    I'd basically like to make this field blank again.

    How?

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Removing "reports to"

    This looks like a bug that was introduced with Version 5.0. I checked version 4.51g and you were able to clear this field by clicking on the "Clear" button that was visible when the Users popup was displayed. This button no longer exists in Version 5.0.


    You can fix by adding this line of code in the modules\Users\EditView.html file

    Code:
    <input type="button" name="btn_clr_reports_to" tabindex="1" title="Clear [Alt+C]" accessKey="C" class="button" onclick="this.form.reports_to_id.value = ''; this.form.reports_to_name.value = '';" value="Clear">

    so that the table row that shows the Reports To field looks like this (around line 322 in Sugar 5 GA)

    Code:
    				<tr>
    					<td class="dataLabel"><slot>{MOD.LBL_REPORTS_TO}</slot></td>
    					<td class="dataField"><slot><input type="text" readonly="readonly" tabindex='5' name="reports_to_name" id="reports_to_name" value="{REPORTS_TO_NAME}" />
    						<input type="hidden" name="reports_to_id" id="reports_to_id" value="{REPORTS_TO_ID}" tabindex="240"/>
    						<input type="button" name="btn_clr_reports_to" tabindex="1" title="Clear [Alt+C]" accessKey="C" class="button" onclick="this.form.reports_to_id.value = ''; this.form.reports_to_name.value = '';" value="Clear">
    						{REPORTS_TO_CHANGE_BUTTON}</slot></td>
    					<td class="dataLabel"><slot>{MOD.LBL_OTHER_PHONE}</slot></td>
    					<td  class="dataField"><slot><input name='phone_other' type="text" tabindex='6' size='20' maxlength='25' value='{PHONE_OTHER}'></slot></td>
    				</tr>


    I reported this as a bug. You can follow progress on this using this link.
    http://www.sugarcrm.com/crm/?option=...4-4778c0f6d7fc
    Last edited by dpatech; 2007-12-31 at 09:12 AM.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2008-07-22, 11:29 AM
  2. user "reports to"
    By kulshreshtha in forum Developer Help
    Replies: 7
    Last Post: 2008-05-11, 01:41 AM
  3. "Reports to" Downstream Permissions
    By mclemmens in forum Feature Requests
    Replies: 0
    Last Post: 2007-12-05, 05:27 PM
  4. Removing Call Time
    By atheimer98 in forum Developer Help
    Replies: 9
    Last Post: 2007-03-12, 07:54 PM
  5. Removing User Invitee remians in their calendar
    By enableithelpdesk in forum Help
    Replies: 1
    Last Post: 2005-11-16, 02:00 PM

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
  •