Skip to content

Commit cd45441

Browse files
authored
Update Field.php
1 parent 82a4cb8 commit cd45441

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/Field.php

+4
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,10 @@ public function isMultipleAnswers()
11141114
*/
11151115
protected function getLabelsFromProperties(array $properties)
11161116
{
1117+
if (!Helpers::isKeyExists($properties, 'labels')) {
1118+
throw new Exception('The resource-file is missing the labels entry for the ' . $this->name . ' field.');
1119+
}
1120+
11171121
if (is_array($properties['labels'])) {
11181122
//At this point we know this the label
11191123
return $this->getLabelsFromArray($properties['labels']);

0 commit comments

Comments
 (0)