Deleting a badge photo reverts to default
This commit is contained in:
parent
f24a5621da
commit
1be56e43ee
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user