From 09754b6c94deb88f682fdab4fd8ee1186aaf2fe4 Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 18 Jul 2024 08:59:34 +0800 Subject: [PATCH] * [misc] auto set id to wrapper of dtable. --- lib/zin/wg/dtable/v1.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/dtable/v1.php b/lib/zin/wg/dtable/v1.php index 8087e625e6..4d9f6c03fc 100644 --- a/lib/zin/wg/dtable/v1.php +++ b/lib/zin/wg/dtable/v1.php @@ -385,6 +385,10 @@ class dtable extends wg $this->setProp('unassignedText', $lang->noAssigned); } - return zui::dtable(inherit($this)); + return zui::dtable + ( + $this->hasProp('id') ? set::_id($this->prop('id') . '_table') : null, + inherit($this) + ); } }