Skip to content

Commit

Permalink
fix secret update
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Nov 18, 2024
1 parent ce0e489 commit 96928d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ public function configureFields(string $pageName): iterable
->onlyOnForms();
yield DateTimeField::new('createdAt')
->hideOnForm();
yield DateTimeField::new('updatedAt')
->hideOnForm();
}
}
3 changes: 3 additions & 0 deletions databox/api/src/Entity/Integration/WorkspaceSecret.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ public function getPlainValue(): ?string
public function setPlainValue(?string $plainValue): void
{
$this->plainValue = $plainValue;
if (null !== $plainValue) {
$this->setValue(null); // Make a change to this mapped field trigger Doctrine preUpdate event
}
}
}

0 comments on commit 96928d9

Please sign in to comment.