/**
  * Return the required flag.
  *
  * @return bool
  */
 public function isRequired()
 {
     if (!($required = parent::isRequired()) && array_get($this->getConfig(), 'min')) {
         return true;
     }
     return $required;
 }
Пример #2
0
 /**
  * Return the required flag.
  *
  * @return bool
  */
 public function isRequired()
 {
     if ($_POST && ($value = array_get($_POST, $this->getInputName() . '_id'))) {
         return false;
     }
     return parent::isRequired();
 }