@@ -20,19 +20,19 @@ |
||
20 | 20 | public function run() |
21 | 21 | { |
22 | 22 | // Get module |
23 | - $module = ucmodule($this->config['module']); |
|
23 | + $module = ucmodule($this->config[ 'module' ]); |
|
24 | 24 | |
25 | 25 | // Get record |
26 | 26 | $modelClass = $module->model_class; |
27 | - $record = $modelClass::find($this->config['record_id']); |
|
27 | + $record = $modelClass::find($this->config[ 'record_id' ]); |
|
28 | 28 | |
29 | 29 | return view('uccello::widgets.relatedlist', [ |
30 | 30 | 'config' => $this->config, |
31 | - 'domain' => ucdomain($this->config['domain']), |
|
31 | + 'domain' => ucdomain($this->config[ 'domain' ]), |
|
32 | 32 | 'module' => $module, |
33 | - 'data' => (object) $this->config['data'], |
|
33 | + 'data' => (object)$this->config[ 'data' ], |
|
34 | 34 | 'record' => $record, |
35 | - 'label' => $this->config['data']->label ?? $this->config['labelForTranslation'], |
|
35 | + 'label' => $this->config[ 'data' ]->label ?? $this->config[ 'labelForTranslation' ], |
|
36 | 36 | ]); |
37 | 37 | } |
38 | 38 | } |