function getEnteredValue()
 {
     // Used to verify typeahead fields
     $data = $this->field->getSource();
     if (isset($data[$this->name . '_name'])) {
         return trim($data[$this->name . '_name']);
     }
     return parent::getValue();
 }
 function getEnteredValue()
 {
     // Used to verify typeahead fields
     return parent::getValue();
 }
Example #3
0
 function getEnteredValue()
 {
     // Used to verify typeahead fields
     $data = $this->field->getSource();
     if (isset($data[$this->name . '_name'])) {
         // Drop the extra part, if any
         $v = $data[$this->name . '_name'];
         $v = substr($v, 0, strrpos($v, ' — '));
         return trim($v);
     }
     return parent::getValue();
 }