From ba12e1b3a4a8032cb7fce849ad07ba8177da1644 Mon Sep 17 00:00:00 2001
From: Kijin Sung
Date: Sat, 28 Jun 2025 11:00:51 +0900
Subject: [PATCH 07/17] Disable unsafe selections when the default value for a
grant is manager
---
modules/module/module.admin.model.php | 3 +++
modules/module/tpl/module_grants.html | 2 ++
2 files changed, 5 insertions(+)
diff --git a/modules/module/module.admin.model.php b/modules/module/module.admin.model.php
index 0be94b122..a74fd0ea7 100644
--- a/modules/module/module.admin.model.php
+++ b/modules/module/module.admin.model.php
@@ -174,11 +174,13 @@ class ModuleAdminModel extends Module
// Get a permission group granted to the current module
$selected_group = array();
+ $default_xml_grant = array();
$default_grant = array();
foreach ($grant_list as $key => $val)
{
if (!empty($val->default))
{
+ $default_xml_grant[$key] = $val->default;
$default_grant[$key] = $val->default;
}
}
@@ -203,6 +205,7 @@ class ModuleAdminModel extends Module
}
}
Context::set('selected_group', $selected_group);
+ Context::set('default_xml_grant', $default_xml_grant);
Context::set('default_grant', $default_grant);
Context::set('module_srl', $module_srl);
// Extract admin ID set in the current module
diff --git a/modules/module/tpl/module_grants.html b/modules/module/tpl/module_grants.html
index dc4557465..b4da47c59 100644
--- a/modules/module/tpl/module_grants.html
+++ b/modules/module/tpl/module_grants.html
@@ -58,9 +58,11 @@
From 108da2eac3b53d7d694d2cf90678227a42385af4 Mon Sep 17 00:00:00 2001
From: Waterticket
Date: Fri, 4 Jul 2025 18:44:01 +0900
Subject: [PATCH 08/17] =?UTF-8?q?=EC=9E=90=EC=8B=A0=EC=9D=84=20=EC=B0=B8?=
=?UTF-8?q?=EC=A1=B0=ED=95=98=EB=8A=94=20=EC=99=B8=EB=9E=98=ED=82=A4?=
=?UTF-8?q?=EB=8A=94=20=EC=83=9D=EC=84=B1=20=EC=88=9C=EC=84=9C=EC=97=90=20?=
=?UTF-8?q?=EC=98=81=ED=96=A5=EC=9D=84=20=EC=A3=BC=EC=A7=80=20=EC=95=8A?=
=?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD=20#2576?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/framework/parsers/DBTableParser.php | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/common/framework/parsers/DBTableParser.php b/common/framework/parsers/DBTableParser.php
index cbd50ea55..50874a7d8 100644
--- a/common/framework/parsers/DBTableParser.php
+++ b/common/framework/parsers/DBTableParser.php
@@ -304,7 +304,13 @@ class DBTableParser extends BaseParser
if ($constraint->references)
{
$ref = explode('.', $constraint->references);
- $info->refs[] = $ref[0];
+ $reference_table_name = $ref[0];
+ if ($reference_table_name === $table_name)
+ {
+ continue; // Ignore self-references.
+ }
+
+ $info->refs[] = $reference_table_name;
}
}
$ref_list[$table_name] = $info;
@@ -328,7 +334,6 @@ class DBTableParser extends BaseParser
}
}
}
- $k++;
}
if (!$changed)
{
From 04b24bb0d16b5edceb4f0b2c02ce2df6cd79a2c7 Mon Sep 17 00:00:00 2001
From: Waterticket
Date: Sun, 6 Jul 2025 02:49:25 +0900
Subject: [PATCH 09/17] =?UTF-8?q?Fix:=20=ED=95=9C=EA=B5=AD=20MX=20?=
=?UTF-8?q?=EB=A0=88=EC=BD=94=EB=93=9C=20=EA=B2=80=EC=A6=9D=EC=8B=9C=20?=
=?UTF-8?q?=EB=8F=84=EB=A9=94=EC=9D=B8=EC=9D=B4=20=EC=95=84=EB=8B=8C=20MX?=
=?UTF-8?q?=20=EB=A0=88=EC=BD=94=EB=93=9C=EC=9D=98=20=EC=95=84=EC=9D=B4?=
=?UTF-8?q?=ED=94=BC=EB=A1=9C=20=EA=B2=80=EC=A6=9D=ED=95=98=EB=8F=84?=
=?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/framework/Korea.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/framework/Korea.php b/common/framework/Korea.php
index 774cda049..b7d57089d 100644
--- a/common/framework/Korea.php
+++ b/common/framework/Korea.php
@@ -349,7 +349,7 @@ class Korea
return self::$_domain_cache[$domain] = false;
}
}
- foreach (self::_getDNSRecords($domain, \DNS_A) as $mx_ip)
+ foreach (self::_getDNSRecords($mx, \DNS_A) as $mx_ip)
{
return self::$_domain_cache[$domain] = self::isKoreanIP($mx_ip);
}
From 94869286ce9d76a6e39a4f6435e8100b265e7d59 Mon Sep 17 00:00:00 2001
From: Kijin Sung
Date: Sun, 6 Jul 2025 17:06:52 +0900
Subject: [PATCH 10/17] Fix missing category_srl in updateDocument return value
#2575
---
modules/document/document.controller.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php
index 4c281b0d4..b4d64844d 100644
--- a/modules/document/document.controller.php
+++ b/modules/document/document.controller.php
@@ -944,8 +944,8 @@ class DocumentController extends Document
{
$this->addGrant($obj->document_srl);
}
- $output->add('document_srl',$obj->document_srl);
- $output->add('category_srl',$obj->category_srl);
+ $output->add('document_srl', $obj->document_srl);
+ $output->add('category_srl', $obj->category_srl);
return $output;
}
@@ -1392,7 +1392,8 @@ class DocumentController extends Document
// Remove the thumbnail file
Rhymix\Framework\Storage::deleteDirectory(RX_BASEDIR . sprintf('files/thumbnails/%s', getNumberingPath($obj->document_srl, 3)));
- $output->add('document_srl',$obj->document_srl);
+ $output->add('document_srl', $obj->document_srl);
+ $output->add('category_srl', $obj->category_srl);
//remove from cache
self::clearDocumentCache($obj->document_srl);
From bd8de66c78e66157aa9d13022cde0169ef1a3ee6 Mon Sep 17 00:00:00 2001
From: Kijin Sung
Date: Sun, 6 Jul 2025 17:16:19 +0900
Subject: [PATCH 11/17] Fix incorrect category selected by default when editing
a document and a default category is set
---
modules/board/m.skins/default/write_form.html | 9 +++++----
modules/board/m.skins/simpleGray/write_form.html | 9 +++++----
modules/board/skins/default/write_form.html | 6 ++++--
modules/board/skins/xedition/write_form.html | 6 ++++--
4 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/modules/board/m.skins/default/write_form.html b/modules/board/m.skins/default/write_form.html
index b4105219f..7283326e2 100644
--- a/modules/board/m.skins/default/write_form.html
+++ b/modules/board/m.skins/default/write_form.html
@@ -19,11 +19,12 @@
diff --git a/modules/board/m.skins/simpleGray/write_form.html b/modules/board/m.skins/simpleGray/write_form.html
index fec0b3118..991f81a06 100644
--- a/modules/board/m.skins/simpleGray/write_form.html
+++ b/modules/board/m.skins/simpleGray/write_form.html
@@ -14,11 +14,12 @@
diff --git a/modules/board/skins/default/write_form.html b/modules/board/skins/default/write_form.html
index b6582ae79..65bc195de 100644
--- a/modules/board/skins/default/write_form.html
+++ b/modules/board/skins/default/write_form.html
@@ -6,9 +6,11 @@