From c0286d45e94f249654270261593886dbaf5660a8 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Sun, 23 Apr 2017 21:02:58 +0100 Subject: [PATCH] hotfix format saving --- RSSTootalizer/Website/EditFeed.pm | 5 +++++ static/templates/EditFeed.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RSSTootalizer/Website/EditFeed.pm b/RSSTootalizer/Website/EditFeed.pm index 9d4b965..211ea10 100644 --- a/RSSTootalizer/Website/EditFeed.pm +++ b/RSSTootalizer/Website/EditFeed.pm @@ -30,6 +30,11 @@ sub fill_content { return 1; } + if ($main::FORM{action} and "x".$main::FORM{action} eq "xsaveformat"){ + $feed->{data}->{format} = $main::FORM{format}; + $feed->save(); + } + if ($main::FORM{action} and "x".$main::FORM{action} eq "xsave"){ my @filters = $feed->filters(); FILTER: foreach my $filter (@filters){ diff --git a/static/templates/EditFeed.html b/static/templates/EditFeed.html index 471249a..beb4c1b 100644 --- a/static/templates/EditFeed.html +++ b/static/templates/EditFeed.html @@ -44,7 +44,7 @@

Format

Enter the format for the toot. You can use the placeholders {ID}, {Title}, {Link}, {Content}, {Author}, {Issued}, {Modified} and {Tags} to substitute the respective values.
- " class="btn-block">
+ " name="format" class="btn-block">