Skip to content

Commit 859a134

Browse files
authored
Block identifier support for block widgets (#1118)
1 parent 061bc37 commit 859a134

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Widgets/Block.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public function __construct($vars)
1616
public function render()
1717
{
1818
$blockModel = config('rapidez.models.block');
19+
$block = new $blockModel;
1920

20-
return Rapidez::content($blockModel::find($this->blockId)->content);
21+
return Rapidez::content($blockModel::where($block->getQualifiedKeyName(), $this->blockId)->orWhere($block->qualifyColumn('identifier'), $this->blockId)->first()->content);
2122
}
2223
}

0 commit comments

Comments
 (0)