From 1be56e43ee3736c79e59a937261c247ad8131002 Mon Sep 17 00:00:00 2001 From: Zachary Doll Date: Wed, 14 May 2014 11:57:26 -0500 Subject: [PATCH] Deleting a badge photo reverts to default --- controllers/class.badgecontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/class.badgecontroller.php b/controllers/class.badgecontroller.php index 68f7787..883a928 100644 --- a/controllers/class.badgecontroller.php +++ b/controllers/class.badgecontroller.php @@ -226,7 +226,7 @@ class BadgeController extends DashboardController { $RedirectUrl = 'badge/edit/'.$BadgeID; if (Gdn::Session()->ValidateTransientKey($TransientKey)) { - $this->BadgeModel->SetField($BadgeID, 'Photo', NULL); + $this->BadgeModel->SetField($BadgeID, 'Photo', C('Yaga.Badges.DefaultPhoto')); $this->InformMessage(T('Yaga.BadgePhotoDeleted')); }