don't preset irrelevant params when doing a create - can cause unexpected results
authoreileen <eileen@fuzion.co.nz>
Wed, 6 Mar 2013 08:38:58 +0000 (21:38 +1300)
committereileen <eileen@fuzion.co.nz>
Thu, 7 Mar 2013 23:49:17 +0000 (12:49 +1300)
js/jquery/jquery.crmeditable.js

index de115b638e2f807c5e4e4e740a52e358b41f394e..f4a32c0096571ab2b2751b89a2c8d355e74e18c4 100644 (file)
           if ($i.data('action')) {
             params[params['field']]=value;//format for create at least
             action=$i.data('action');
+            delete params['field'];
+            delete params['value'];
           } else {
             action="setvalue";
           }