* Fix a bug that prevented clearing email or subscriptions.

master
joey 2007-04-30 21:32:24 +00:00
parent 65be0598a9
commit 9026ae05c2
3 changed files with 5 additions and 2 deletions

View File

@ -189,7 +189,7 @@ sub formbuilder (@) { #{{{
if ($form->submitted eq "Save Preferences" && $form->validate) {
my $user_name=$form->field('name');
foreach my $field (qw(password)) {
if (defined $form->field($field) && length $form->field($field)) {
if (defined $form->field($field)) {
IkiWiki::userinfo_set($user_name, $field, $form->field($field)) ||
error("failed to set $field");
}

3
debian/changelog vendored
View File

@ -4,8 +4,9 @@ ikiwiki (2.1) UNRELEASED; urgency=low
styled using the stylesheet, rather than by creating signin and prefs
templates.
* Make the openid login form nicely styled.
* Fix a bug that prevented clearing email or subscriptions.
-- Joey Hess <joeyh@debian.org> Mon, 30 Apr 2007 17:53:10 -0400
-- Joey Hess <joeyh@debian.org> Mon, 30 Apr 2007 18:04:02 -0400
ikiwiki (2.00) unstable; urgency=low

View File

@ -1,3 +1,5 @@
If a user has an email address in their prefs, and they try to clear it,
the prefs seem to save ok, and the email seems to be gone, but reloading
the prefs page will reveal the old email address.
Also affected subscriptions.. [[done]]