From 39d9499e104dcb71605c84de9c7cdffcc9cdf2d6 Mon Sep 17 00:00:00 2001 From: Boshnik Date: Mon, 2 Sep 2024 22:56:11 +0300 Subject: [PATCH] fixed hide_time --- assets/components/extrafields/js/mgr/widgets/abs/grid.js | 2 +- core/components/extrafields/processors/mgr/abs/get.class.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/components/extrafields/js/mgr/widgets/abs/grid.js b/assets/components/extrafields/js/mgr/widgets/abs/grid.js index c120301..f62d821 100644 --- a/assets/components/extrafields/js/mgr/widgets/abs/grid.js +++ b/assets/components/extrafields/js/mgr/widgets/abs/grid.js @@ -81,7 +81,7 @@ Ext.extend(ExtraFields.grid.FieldAbs, ExtraFields.grid.Default, { listeners: { success: { fn: function (r) { - var w = MODx.load({ + let w = MODx.load({ xtype: 'ef-abs-window-update', id: Ext.id(), class_name: class_name.value, diff --git a/core/components/extrafields/processors/mgr/abs/get.class.php b/core/components/extrafields/processors/mgr/abs/get.class.php index 22df764..bdf7604 100644 --- a/core/components/extrafields/processors/mgr/abs/get.class.php +++ b/core/components/extrafields/processors/mgr/abs/get.class.php @@ -20,6 +20,7 @@ public function cleanup() { if (!empty($array['ab_user_group'])) { $array['ab_user_group'] = explode('||', $array['ab_user_group']); } + $array['hide_time'] = $array['hide_time'] ? 1 : 0; return $this->success('', $array); }