Merge branch 'develop' into trunk
This commit is contained in:
commit
5954552eac
2 changed files with 2 additions and 4 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue