|
From: <sv...@de...> - 2005-05-20 16:10:20
|
Author: pcamacho
Date: 2005-05-20 12:10:19 -0400 (Fri, 20 May 2005)
New Revision: 1112
Modified:
humano2/trunk/core/db/absCrud.cs
Log:
FIX: bug #120. In the function formatDataAccordingToStructure there was a=
line that said no to update a field if the=20
value passed was the empty string. Yet we don't know what is the impact o=
f this change.
Modified: humano2/trunk/core/db/absCrud.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/core/db/absCrud.cs 2005-05-20 15:18:20 UTC (rev 1111)
+++ humano2/trunk/core/db/absCrud.cs 2005-05-20 16:10:19 UTC (rev 1112)
@@ -966,6 +966,7 @@
ArrayList missingAttribs =3D new ArrayList();
int columnCounter =3D 0;
=09
+ Logger.Log("updateInstance: " + DbUtils.DumpData(data), LogL=
evel.Trace);
formatDataAccordingToStructure(classId, structure, workRow,
instNames, instColumns, instValues,
missingAttribs, virtAttribs);
@@ -1277,7 +1278,7 @@
string value =3D Convert.ToString(workRow[columnName]);
=09
// If the value is empty, don't bother adding it.
- if(value.Length =3D=3D 0) { continue; }
+ //if(value.Length =3D=3D 0) { continue; }
=09
string columnValue =3D escapeAttribute( value, columnType );
=09
|