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();
 }
예제 #2
0
 function getEnteredValue()
 {
     // Used to verify typeahead fields
     return parent::getValue();
 }
예제 #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();
 }