Skip to content

Commit 31f2ce7

Browse files
committed
fix user issue
1 parent 7931979 commit 31f2ce7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Domain/Projects/Services/Projects.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ private function duplicateCanvas(string $repository, int $originalProjectId, int
12111211
foreach ($canvasItems as $newItem) {
12121212
$newCanvasItemValues = [
12131213
'relates' => ($newItem['relates'] ?? false) ? ($idMap[$newItem['relates']] ?? '') : '',
1214-
'parent' => ($newItem['relates'] ?? false) ? ($idMap[$newItem['parent']] ?? '') : ''
1214+
'parent' => ($newItem['relates'] ?? false) ? ($idMap[$newItem['parent']] ?? '') : '',
12151215

12161216
];
12171217

app/Domain/Users/Repositories/Users.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public function patchUser($id, $params): bool
620620
$sql = 'UPDATE zp_user SET';
621621

622622
foreach ($params as $key => $value) {
623-
$sql .= DbCore::sanitizeToColumnString($key).'=:'.DbCore::sanitizeToColumnString($key).', ';
623+
$sql .= ' '.DbCore::sanitizeToColumnString($key).'=:'.DbCore::sanitizeToColumnString($key).', ';
624624
}
625625

626626
$sql .= ' modified =:modified WHERE id=:id LIMIT 1';

0 commit comments

Comments
 (0)