From 4978cccc3bc60c71fc64716cfecb3fc89e870342 Mon Sep 17 00:00:00 2001 From: ThomasNgr-OpenDSI Date: Thu, 18 Jun 2026 09:19:59 +0200 Subject: [PATCH] Fix #38781 allow editing dictionary entries with rowid = 0 (ST_NEVER) (#38841) --- htdocs/admin/dict.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 859ef271a85..9eab23d2835 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -2046,7 +2046,7 @@ if ($id > 0) { print ''; } - if ($action == 'edit' && ($rowid == (!empty($obj->rowid) ? $obj->rowid : $obj->code))) { + if ($action == 'edit' && ($rowid == (isset($obj->rowid) ? $obj->rowid : $obj->code))) { $tmpaction = 'edit'; $parameters = array('fieldlist'=>$fieldlist, 'tabname'=>$tabname[$id]); $reshook = $hookmanager->executeHooks('editDictionaryFieldlist', $parameters, $obj, $tmpaction); // Note that $action and $object may have been modified by some hooks @@ -2058,7 +2058,7 @@ if ($id > 0) { } print ''; - print '
'; + print '
'; print ''; print ''; if (!is_null($withentity)) {