| @@ 799-801 (lines=3) @@ | ||
| 796 | */ |
|
| 797 | public function error($field, $text = null, array $options = []) |
|
| 798 | { |
|
| 799 | if (substr($field, -5) === '._ids') { |
|
| 800 | $field = substr($field, 0, -5); |
|
| 801 | } |
|
| 802 | $options += ['escape' => true]; |
|
| 803 | ||
| 804 | $context = $this->_getContext(); |
|
| @@ 912-914 (lines=3) @@ | ||
| 909 | { |
|
| 910 | if ($text === null) { |
|
| 911 | $text = $fieldName; |
|
| 912 | if (substr($text, -5) === '._ids') { |
|
| 913 | $text = substr($text, 0, -5); |
|
| 914 | } |
|
| 915 | if (strpos($text, '.') !== false) { |
|
| 916 | $fieldElements = explode('.', $text); |
|
| 917 | $text = array_pop($fieldElements); |
|