public function fields()
{
$res = $this->overwriteFieldNamesFromDotNotationToArray($this->getOperationSetting('fields') ?? []);
- if (is_bool($this->getCurrentEntry())) {
+ try {
+ $entry = $this->getCurrentEntry();
+ if (is_bool($entry)) {
+ return $res;
+ }
+ } catch (\Exception $e) {
+ return $res;
+ } catch (\Error $e) {
return $res;
}
+
foreach ($res as $k => $v) {
if (isset($v['hint'])) {
- $res[$k]['hint'] = str_replace('$id', $this->getCurrentEntry()->id, $v['hint']);
+ $res[$k]['hint'] = str_replace('$id', $entry->id, $v['hint']);
}
}
return $res;