Closed (fixed)
Project:
Entity Construction Kit (ECK)
Version:
7.x-2.0-rc1
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2012 at 08:49 UTC
Updated:
13 Apr 2013 at 00:10 UTC
Hi I got an integer type field with a custom behaviour. If I leave this field blank, database gives error (most probably eck sends the value as text null and database cannot write) If I write this field zero than it works. I attached my property behaviour. How can we put default value as zero so that there wont be a problem?
| Comment | File | Size | Author |
|---|---|---|---|
| labeled_text.zip | 1.19 KB | zulfierken |
Comments
Comment #1
fmizzell commentedThere is a "behavior hook" that gets called before a value gets set. You can use that to do exactly what you are describing