On my setup using 6.x-3.x-dev and Sugar Community Edition Version 5.0.0f (Build 3338), I could not POST to the URI that this module generated, which was:
http://crm.mydomain.com/index.php?entryPoint=WebToLeadCapture
Instead, I needed a URI more like this:
http://crm.mydomain.com/WebToLeadCapture.php
Also, there was what appears to me to be a bug in one of the t() function calls.
The attached patch fixes the bug and changes the URI posted to Sugar.
Jeff
| Comment | File | Size | Author |
|---|---|---|---|
| url-t-fix.patch | 899 bytes | jeffam |
Comments
Comment #1
robbertnl commentedHi Jeff,
As mentioned at the module page, this module supports SugarCRM version 5.1 and higher only. SugarCRM changed the way submitting posts via WebToLEadCapture from version 5.1. So your fix will destroy 5.1 and higher support. But i can rewrite it support both. I will also take a look at the t() function calls. But it will take some time since i am holliday the next 2 weeks.
Comment #2
jeffamHi Robbert,
Thanks for your reply. I should have read the requirements more carefully and written the patch to support both versions. I'm working for a client and have little control over the version of Sugar they are using, but I should have guessed the POST URL had changed because of the way you wrote it.
Enjoy your holiday!
Jeff
Comment #3
robbertnl commentedHi Jeff, did you write a patch to support both? If so i can include it in the next release. If not, i have to do it myself :)
Comment #4
robbertnl commentedComment #5
chiddicks commentedIf supporting SugarCRM 5.0 is as simple as modifying the URL used for the submit, can I suggest we build some logic in to determine to SugarCRM version and thus the right URL? Is there anything else that would prevent this module from supporting 5.0?
I'd be happy to work on a patch for this if it is relatively straightforward.
Comment #6
robbertnl commentedMarking as feature request. I think that modifying the url would be enough
Comment #7
rurri commentedJeff, are you still using SugarCRM 5.0?
Comment #8
rurri commentedSugarCRM 5.0 is no longer even available in archived releases on sugarcrm. I think it is going to be easier to just say that webform2sugar will not support 5.0 for the meantime, since I don't think anyone is still using that version that uses or would like to use this module.
Closing this issue off as won't fix.
Feel free to re-open if anyone is actually still using 5.0.