Patrickios
New Member
Fabrik 2.1, Joomla 1.5.24, Windows XP(dev machine), MySql 5.1
The database design supports a Foreign key from TableA into TableB, that also allows it to have a NULL value.
The Fabrik Form is configured to render as <drop-down> the FKey, and works well when the field does have a value.
When there is NO value for the Fkey field, there is an error with the SQL statement -- upon SAVE -- and saving does not work.
The generated SQL statement is
UPDATE tableA SET fieldAtoFK = ''
instead of ...
UPDATE tableA SET fieldAtoFK = null
An empty string appears in the SQL stmt instead of the field with a NULL value.
Is there a work-around for this?
Thanks
The database design supports a Foreign key from TableA into TableB, that also allows it to have a NULL value.
The Fabrik Form is configured to render as <drop-down> the FKey, and works well when the field does have a value.
When there is NO value for the Fkey field, there is an error with the SQL statement -- upon SAVE -- and saving does not work.
The generated SQL statement is
UPDATE tableA SET fieldAtoFK = ''
instead of ...
UPDATE tableA SET fieldAtoFK = null
An empty string appears in the SQL stmt instead of the field with a NULL value.
Is there a work-around for this?
Thanks