<div dir="ltr"><div>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.</div>
<div><br></div><div><br></div><div><div>Index: include/Webservices/VtigerModuleOperation.php</div><div>===================================================================</div><div>--- include/Webservices/VtigerModuleOperation.php<span class="" style="white-space:pre"> </span>(revision 3285)</div>
<div>+++ include/Webservices/VtigerModuleOperation.php<span class="" style="white-space:pre"> </span>(revision 4690)</div><div>@@ -77,5 +77,5 @@</div><div> <span class="" style="white-space:pre"> </span></div><div> <span class="" style="white-space:pre"> </span>$crmObject = new VtigerCRMObject($this->tabId, true);</div>
<div>-<span class="" style="white-space:pre"> </span>$crmObject->setObjectId($ids[1]);</div><div>+<span class="" style="white-space:pre"> </span>$crmObject->read($ids[1]);</div><div> <span class="" style="white-space:pre"> </span>$error = $crmObject->update($element);</div>
<div> <span class="" style="white-space:pre"> </span>if(!$error){</div></div></div>