Skip to content

Commit fd81fed

Browse files
committed
wip
1 parent c71ce69 commit fd81fed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/Library/CrudPanel/Traits/Create.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ private function createRelationsForItem($item, $formattedRelations)
140140
if (empty($relationValues)) {
141141
$relationValues = array_values($values);
142142
}
143-
143+
144144
$item->{$relationMethod}()->sync($relationValues);
145-
$item->{$relationMethod}()->syncWithPivotValues(array_keys($relationValues), array_values($relationValues));
146145
break;
147146
}
148147
}

src/app/Library/Uploaders/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private function getOriginalValue(Model $entry, $field = null)
274274
return $previousValue;
275275
}
276276

277-
if ($entry->translationEnabled()) {
277+
if (method_exists($entry, 'translationEnabled') && $entry->translationEnabled()) {
278278
return $previousValue[$entry->getLocale()] ?? null;
279279
}
280280

0 commit comments

Comments
 (0)