How to change mass edit limit in Vtiger 6.5

Sometimes you need to make mass operation on houndreds of records in Vtiger. Well in this case it’s 500 ones maximum… Well this is kinda stupid because it can surely handle up to thousands. How do I know? I’ve hacked the code and successfully converted 2000 leads ๐Ÿ™‚ Well it takes some time but it definitely works!

Let us return to the merits. You need to edit a file from root folder of your Vtiger 6.5 CRM, placed hereย /layouts/vlayout/modules/Vtiger/resources/List.js. Simply find the code below and edit number according to your needs:



File: List.js
-------------

		var selectedCount = this.getSelectedRecordCount();
		if(selectedCount > 2000) {
		    var params = {
			    title : app.vtranslate('JS_MESSAGE'),
			    text: app.vtranslate('JS_MASS_EDIT_LIMIT'),
			    animation: 'show',
			    type: 'error'
		    };
		    Vtiger_Helper_Js.showPnotify(params);
		    return;
		}




Comments

0 responses to “How to change mass edit limit in Vtiger 6.5”

  1. Jon Avatar
    Jon

    Hi, thanks for the tip. I have vtiger running on apache2 server, I needed to update 20,000 records, so I updated the mass edit limit and for good measure changed the php max execution time both in vtiger php.ini and apache. I tried running a mass edit on roughly 1000 records and it got a loading screen and let it run for an hour to no avail. tried again with 350 records and again no changes took place. any ideas?

    1. Konrad Fedorczyk Avatar
      Konrad Fedorczyk

      Hi,
      In my case it was quite long but it worked like a charm (about 1500 leads). You can debug that by using your browser’s developer tools. Enable PHP error reporting (display_errors = on in your php.ini). If you’re using Chrome press CTRL+SHIFT+I and go to Network tab. Now with developer opened run import in Vtiger, at the bottom you should see your request. Check it’s status, if something went wrong you should see 500 status and error response after clicking. Let me know if it works. In worst case scenario I can write tool to import data in batches.

  2. Claudiu Avatar
    Claudiu

    Hi,

    Do you have any idea how to modify mass edit in vtiger v7?
    I have modified /layouts/vlayout/modules/Vtiger/resources/List.js, but still not working.

    1. Konrad Fedorczyk Avatar
      Konrad Fedorczyk

      Hi Claudiu,
      What error are you getting?

  3. Renan Avatar
    Renan

    Hi! I have a Vtiger 7.2 and I can’t change this limit. I’d edit this /layouts/vlayout/modules/Vtiger/resources/List.js and I didn’t have success, but when I’ll edit, the interface show me limit msg in 500 per each. I reset my browser cache too, but not success again. Can you help me?

    1. Konrad Fedorczyk Avatar
      Konrad Fedorczyk

      I’m terribly sorry but I do not use Vtiger anymore ๐Ÿ™