Merge branch 'develop' into trunk

This commit is contained in:
K Muller 2026-07-02 14:46:17 +02:00
commit 5954552eac
2 changed files with 2 additions and 4 deletions

View file

@ -97,7 +97,7 @@ class TranslationHelper
->whereKeyNot($model->getKey())
->whereRaw("JSON_SEARCH(`{$dbAttribute}`, 'one', ?) IS NOT NULL", [$value]);
if ($anotherDbAttribute !== null && $anotherValue !== null) {
if ($anotherDbAttribute !== null) {
$query->where($anotherDbAttribute, $anotherValue);
}
if ($query->exists()) {

View file

@ -253,9 +253,7 @@ export default function Form({
modelName={useTrans(`models.classes.${modelName}`, {
choice: 1,
})}
pathField={data.isRoot ? "" : dynamicPageUrl
.replace(url, "")
.replace(/^\/+/, "")}
pathField={data.isRoot ? "" : (dynamicPageUrl ?? "").replace(url, "").replace(/^\/+/, "")}
isAvailable={
model?.status ===
enumDynamicPageStatus.published.value