cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Implement allowEmpty for Ip validator

Open nsossonko opened this issue 11 years ago • 4 comments

Currently, specifying 'allowEmpty' => true in the options array for the Ip validator does nothing. It still fails.

nsossonko avatar Oct 01 '15 19:10 nsossonko

This feature is implemented only for Phalcon\Validation, Ip is not included in this component, tomorrow I'll be able to get it to port

KorsaR-ZN avatar Oct 01 '15 21:10 KorsaR-ZN

Version 2.0.8. Many of the Mvc\Model\Validator classes also implement allowEmpty (as can be seen here: https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/model/validator/email.zep#L67 for example). Ip was just missed...

nsossonko avatar Oct 01 '15 21:10 nsossonko

This component is deprecated since version 2.1. For the 2.0.x branch, I also made a patch today

KorsaR-ZN avatar Oct 02 '15 06:10 KorsaR-ZN

Fixed in 2.0.x branch

andresgutierrez avatar Oct 15 '15 10:10 andresgutierrez