Fix multiple calls returning the same object (#1478)

This commit is contained in:
Ryan Lieu 2022-07-15 11:19:18 +08:00 committed by GitHub
parent c03ee2c8be
commit f07b57fe20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ class Helper
$key = $keys[$table];
$db = Db::get();
$widget = Widget::widget($className);
$widget = Widget::widget($className . '@' . $pkId);
$db->fetchRow(
$widget->select()->where("{$key} = ?", $pkId)->limit(1),