M
|
mlcprs author 9/17/2009 |
I should have said that I was hoping it would insert the SQL default value in the FK field, which is NULL. |
![]() |
Admin 9/17/2009 |
This behaviour is by design. You may want to override this field value with NULL using BeforeAdd/BeforeEdit events. |
A
|
Andrea Devecchi 10/1/2009 |
This problem occurred to me also and only if the key is a varchar. if ($values['fieldname'] == "") unset($values['fieldname']);
I should have said that I was hoping it would insert the SQL default value in the FK field, which is NULL. It just occurred to me that this problem might be occuring because the key is a VARCHAR. It seems to work OK where the key is an INT. Maybe the phpRunner code is trying to insert the empty string "". Peter |