Skip to content

Commit

Permalink
Fix delete function of 'Lang and script note'. (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed Sep 11, 2024
1 parent 199d159 commit 336c9d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion lib/model/om/BaseNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public function save($connection = null)
{
if ($this->deleted)
{
throw new PropelException('You cannot save an object that has been deleted.');
return $this;
}

if ($this->new)
Expand Down
7 changes: 0 additions & 7 deletions plugins/sfIsadPlugin/lib/sfIsadPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ public function __set($name, $value)
if (0 == strlen($value)) {
// Delete note if it's available
if (!$missingNote) {
// Update deleted note on duplication
if (!isset($value)) {
$note->content = $value;

break;
}

$note->delete();
}

Expand Down

0 comments on commit 336c9d8

Please sign in to comment.