Results 1 to 3 of 3

Thread: Mass Update - Contacts - Remove Fields?

  1. #1
    aram is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    52

    Default Mass Update - Contacts - Remove Fields?

    How can I remove default fields in Mass Update seen in Contacts List View?
    I don't want Sync to Outlook or Lead Source, nor a few others.

    Also is there a way to only allow Admins to do Mass Updates
    preventing Mass Updating by any regular user?

    Sugar 5.0.0b

    Thanks,
    Aram

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

    Default Re: Mass Update - Contacts - Remove Fields?

    Unfortunatley the "Synch to Outlook" mass-update item is hard-coded into the code with no way to remove. The remaining fields can be removed by adding the following to custom/Extension/modules/Contacts/Ext/Vardefs/Aram.php
    ( You can name the file what you want - the contents will be merged into another file ).

    $dictionary['Contact']['fieldname']['massupdate'] = false;

    where fieldname is the name of the field from the /modules/Contacts/vardefs.php such as "lead_source"

    Note that after adding this file you will need to run the Admin -> Repair -> Rebuild Extensions and Admin -> Repair -> Clear Vardef Data Cache for the Contacts module. Also, because of a Bug in Sugar 5.0b, please uncheck the "Clear all cache files" and check "Clear Vardefs ONLY" when running Repair->Clear Vardef Cache.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    mangesh1757 is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    India
    Posts
    226

    Default Re: Mass Update - Contacts - Remove Fields?

    Hi aram,

    To display mass update only to admin can be achieved by adding following code at,
    <root directory>\custom\modules\Accounts\views\view.list .php

    /************************************************** */
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    require_once('include/MVC/View/views/view.list.php');

    class AccountsViewList extends ViewList {
    function listViewProcess() {
    global $current_user;

    //$this->params['massupdate'] = is_admin($current_user);
    $this->lv->showMassupdateFields = is_admin($current_user);
    parent::listViewProcess();
    }
    }
    ?>
    /************************************************** */

    Thanks.

    PS : Above approach is module specific i.e with above example mass update panel of Accounts module only can be made available to admin.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mass Update for Text Fields or an Alternative
    By jennifleac in forum Help
    Replies: 0
    Last Post: 2007-12-17, 10:15 PM
  2. Replies: 0
    Last Post: 2007-06-16, 02:20 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
  •