yii2-enhanced-gii icon indicating copy to clipboard operation
yii2-enhanced-gii copied to clipboard

Add zero by default for checkbox input type

Open medzhidov opened this issue 7 years ago • 4 comments

Fix #116

medzhidov avatar Jul 16 '17 22:07 medzhidov

Actually it be fixed by database configuration.. setting default to zero..

Sent from my ZUK Z2131 using FastHub

mootensai avatar Jul 17 '17 08:07 mootensai

Yii2 don't give send record to database, because in database this field is required. You do the same in simple record creation outside of relations, but why you don't want do it in relational records?

medzhidov avatar Jul 17 '17 11:07 medzhidov

So, how about this pull request?

medzhidov avatar Jul 18 '17 19:07 medzhidov

I haven't checked it.. please wait..

Sent from my ZUK Z2131 using FastHub

mootensai avatar Jul 19 '17 08:07 mootensai