From: <ndi...@us...> - 2002-09-03 23:47:40
|
Update of /cvsroot/modus/org/bacfug/modus/fields In directory usw-pr-cvs1:/tmp/cvs-serv9847/bacfug/modus/fields Modified Files: basefile.cfc Log Message: fixed a bug in which the file reference got killed if a new file was not uploaded. But, we should figure out a way to kill the file reference altogether. Hmm. Perhaps a checkbox as part of the file form widget? Kind of messy, though. Index: basefile.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/fields/basefile.cfc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** basefile.cfc 3 Sep 2002 08:44:04 -0000 1.3 --- basefile.cfc 3 Sep 2002 23:47:37 -0000 1.4 *************** *** 23,26 **** --- 23,31 ---- } </cfscript> + <!--- if the form field is there, but it is blank and the arguments.value is the same, then just set the instance.value to whatever the value already is ---> + <cfelseif structKeyExists(form,getName()) AND NOT len(trim(form[getName()])) AND arguments.value is form[getName()]> + <cfscript> + instance.value = getValue(); + </cfscript> <!--- if we're not uploading the file, then the value is just the value ---> <cfelse> |