if (method_exists($fieldObj, "toMatlabExpr")) { // print "IF:"; // print $fieldname . "
"; $tempArray = array (); $tempArray['name'] = $fieldname; if ($fieldname == "DueDate") { //continue; } if ($fieldname == 'DependentOn' && is_array($record[$fieldname])) { $tempArray['value'] = implode(",", $record[$fieldname]); } else { $tempArray['value'] = $record[$fieldname]; } array_push($new_record['customFields'], $tempArray); } else { // Otherwise, we put the update value directly into the field // value. //This is a geck field //print "else: $fieldname
"; $new_record[$fieldname] = trim($record[$fieldname]); }