From adb94488f93673b5b8775bf07cfc453c5c3e2973 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 20 Feb 2012 16:57:58 +0100 Subject: [PATCH] SL::DB::Contact->detach nicht automatisch speichern lassen --- SL/DB/Contact.pm | 2 +- bin/mozilla/ct.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/Contact.pm b/SL/DB/Contact.pm index 4b6c35e42..d891f0781 100644 --- a/SL/DB/Contact.pm +++ b/SL/DB/Contact.pm @@ -32,7 +32,7 @@ sub used { sub detach { $_[0]->cp_cv_id(undef); - $_[0]->save; + $_[0]; } sub full_name { diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 5a579e92a..3cafbd93f 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -743,7 +743,7 @@ sub delete_contact { my $contact = SL::DB::Manager::Contact->find_by(cp_id => $::form->{cp_id}); if ($contact->used) { - $contact->detach; + $contact->detach->save; flash('info', $::locale->text('Contact is in use and was flagged invalid.')); } else { $contact->delete; -- 2.20.1