revert InlineLock addfield conversion
authorTim Mallezie <tim.mallezie@chiro.be>
Fri, 27 Mar 2015 05:18:10 +0000 (06:18 +0100)
committerTim Mallezie <tim.mallezie@chiro.be>
Fri, 27 Mar 2015 05:18:10 +0000 (06:18 +0100)
CRM/Contact/Form/Inline/Lock.php

index 8450ea08a303056cd0f979649e1c1fee013aba83..b963f823d065fe15df9152435966eba871b1502b 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Contact_Form_Inline_Lock {
     // - V1:open E1:open E1:submit V1.email:open V1.email:submit
     // - V1:open V1.email:open E1:open E1:submit V1.email:submit V1:lock
     $timestamps = CRM_Contact_BAO_Contact::getTimestamps($contactID);
-    $form->addField('oplock_ts', array('type' => 'hidden', 'id' => 'oplock_ts', 'label' => $timestamps['modified_date']));
+    $form->addElement('hidden', 'oplock_ts', $timestamps['modified_date'], array('id' => 'oplock_ts'));
     $form->addFormRule(array('CRM_Contact_Form_Inline_Lock', 'formRule'), $contactID);
   }