Revision adb94488
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
SL/DB/Contact.pm | ||
---|---|---|
32 | 32 |
|
33 | 33 |
sub detach { |
34 | 34 |
$_[0]->cp_cv_id(undef); |
35 |
$_[0]->save;
|
|
35 |
$_[0]; |
|
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
sub full_name { |
bin/mozilla/ct.pl | ||
---|---|---|
743 | 743 |
my $contact = SL::DB::Manager::Contact->find_by(cp_id => $::form->{cp_id}); |
744 | 744 |
|
745 | 745 |
if ($contact->used) { |
746 |
$contact->detach; |
|
746 |
$contact->detach->save;
|
|
747 | 747 |
flash('info', $::locale->text('Contact is in use and was flagged invalid.')); |
748 | 748 |
} else { |
749 | 749 |
$contact->delete; |
Auch abrufbar als: Unified diff
SL::DB::Contact->detach nicht automatisch speichern lassen