All pastes #450304 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-20 19:12 UTC
rendered paste body
								if (method_exists($fieldObj, "toMatlabExpr")) {
									//			                 	print "IF:";
									//			                 	print $fieldname . "<br>";
									$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 <br>";
									$new_record[$fieldname] = trim($record[$fieldname]);
								}