[Vtigercrm-developers] vtws_update bug

Adam Heinz amh at metricwise.net
Wed Oct 30 21:27:41 GMT 2013


Not sure why, but vtws_update wasn't loading the current state of the
entity before applying changes.  This meant that you always had to hand the
entire state of the object around, rather than just sending the desired
delta.


Index: include/Webservices/VtigerModuleOperation.php
===================================================================
--- include/Webservices/VtigerModuleOperation.php (revision 3285)
+++ include/Webservices/VtigerModuleOperation.php (revision 4690)
@@ -77,5 +77,5 @@

  $crmObject = new VtigerCRMObject($this->tabId, true);
- $crmObject->setObjectId($ids[1]);
+ $crmObject->read($ids[1]);
  $error = $crmObject->update($element);
  if(!$error){
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20131030/8e9b28a2/attachment-0001.html>


More information about the vtigercrm-developers mailing list