Skip to content

Commit

Permalink
Fix delete function of 'Lang and script note'. (#1846) (#1866)
Browse files Browse the repository at this point in the history
Update delete function for 'Language and script note' field to delete entry from database and removing duplicate check for deleted entry.
  • Loading branch information
melaniekung authored Sep 16, 2024
1 parent 199d159 commit 4926bc9
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 4926bc9

Please sign in to comment.