r18301 - gnucash/trunk/src/business/business-core/sql - Fix Bug 590900 - "Unable to save to DB" dialog from Business -> Customer -> New Job

Phil Longstaff plongstaff at code.gnucash.org
Mon Sep 7 12:48:27 EDT 2009


Author: plongstaff
Date: 2009-09-07 12:48:27 -0400 (Mon, 07 Sep 2009)
New Revision: 18301
Trac: http://svn.gnucash.org/trac/changeset/18301

Modified:
   gnucash/trunk/src/business/business-core/sql/gnc-job-sql.c
Log:
Fix Bug 590900 -  "Unable to save to DB" dialog from Business -> Customer -> New Job

Allow owner id to be NULL


Modified: gnucash/trunk/src/business/business-core/sql/gnc-job-sql.c
===================================================================
--- gnucash/trunk/src/business/business-core/sql/gnc-job-sql.c	2009-09-07 16:25:11 UTC (rev 18300)
+++ gnucash/trunk/src/business/business-core/sql/gnc-job-sql.c	2009-09-07 16:48:27 UTC (rev 18301)
@@ -60,7 +60,7 @@
 	{ "reference", CT_STRING,   MAX_REFERENCE_LEN, COL_NNUL,          NULL, JOB_REFERENCE },
 	{ "active",    CT_BOOLEAN,  0,                 COL_NNUL,          NULL, NULL,
 		(QofAccessFunc)gncJobGetActive, (QofSetterFunc)gncJobSetActive },
-	{ "owner",     CT_OWNERREF, 0,                 COL_NNUL,          NULL, NULL,
+	{ "owner",     CT_OWNERREF, 0,                 0,                 NULL, NULL,
 		(QofAccessFunc)gncJobGetOwner, (QofSetterFunc)gncJobSetOwner },
 	{ NULL }
 };



More information about the gnucash-changes mailing list