File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function render(callable $callback = null)
3838 $ settings = $ this ->data ->get ('settings ' );
3939 $ assets = $ this ->data ->get ('assets ' );
4040 $ offset = $ this ->data ->get ('offset ' );
41- $ template = $ this -> data -> get ( ' template ' );
41+ $ template = LabelModel:: find ( $ settings -> label2_template );
4242
4343 // If disabled, pass to legacy view
4444 if ((!$ settings ->label2_enable ) && (!$ template )) {
@@ -49,13 +49,6 @@ public function render(callable $callback = null)
4949 ->with ('count ' , $ this ->data ->get ('count ' ));
5050 }
5151
52- // If a specific template was set, use it, otherwise fall back to default
53- if (empty ($ template )) {
54- $ template = LabelModel::find ($ settings ->label2_template );
55- } elseif (is_string ($ template )) {
56- $ template = LabelModel::find ($ template );
57- }
58-
5952 $ template ->validate ();
6053
6154 $ pdf = new TCPDF (
You can’t perform that action at this time.
0 commit comments