Skip to content

Commit

Permalink
Change query['label'] to query['text']
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainjule committed Nov 21, 2019
1 parent d9c2f22 commit bfef9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/options/imageradio-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function query($query, $model = null): array {

// resolve array query setup
if (is_array($query) === true) {
$text = $query['label'] ?? '{{ file.filename }}';
$text = $query['text'] ?? '{{ file.filename }}';
$value = $query['value'] ?? '{{ file.id }}';
$image = $query['image'] ?? '{{ file.url }}';
$query = $query['fetch'] ?? null;
Expand All @@ -106,4 +106,4 @@ public static function query($query, $model = null): array {
]);
return $optionsQuery->options();
}
}
}

0 comments on commit bfef9ba

Please sign in to comment.