YiiBooster icon indicating copy to clipboard operation
YiiBooster copied to clipboard

TbToggleAction does not validate before saving

Open jamesmbowler opened this issue 10 years ago • 0 comments

See https://github.com/clevertech/YiiBooster/blob/master/src/actions/TbToggleAction.php#L74

$success = $model->save(false, array($attribute));

Why is validation turned off by default? I think there should either be an option to validate, or validate by default.

jamesmbowler avatar Sep 29 '14 23:09 jamesmbowler