X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FPrefs%2FCalendar.html;h=af20acd0ca22ee7526aa7916c03042a8f60d9d72;hb=01721976fa3324f41a3093cda68bc38a7eec5ff5;hp=5fbdd27172ff8be3bc0bfaca1f6435b324db8330;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/rt/share/html/Prefs/Calendar.html b/rt/share/html/Prefs/Calendar.html index 5fbdd2717..af20acd0c 100644 --- a/rt/share/html/Prefs/Calendar.html +++ b/rt/share/html/Prefs/Calendar.html @@ -6,10 +6,7 @@ $HiddenField => undef <& /Elements/Header, Title => $title &> -<& /User/Elements/Tabs, - current_tab => 'Prefs/Calendar.html', - Title => $title -&> +<& /Elements/Tabs &> <&| /Widgets/TitleBox, title => loc('ICal Feeds (ics)') &> @@ -50,7 +47,7 @@ Builder")%>.

<& /Prefs/Elements/CalendarFeed &> -% # only allow this part if +% # only allow this part if % if ($AllowSearch) { % my $search_count; @@ -95,7 +92,7 @@ href="<%$RT::WebPath . '/Search/Build.html'%>">the Query Builder <%INIT> -use Digest::SHA1; +use Digest::SHA; use RT::SavedSearches; my $title = loc("Calendar Prefs"); @@ -107,14 +104,14 @@ $AllowSearch = 1 my $object; -if ($HiddenField eq 'Private') { +if ($HiddenField && $HiddenField eq 'Private') { $object = $session{CurrentUser}->UserObj; -} elsif ($AllowSearch and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) { +} elsif ($AllowSearch and $HiddenField and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) { $object = $session{CurrentUser}->Attributes->WithId($SearchId); } if (defined $ChangeURL) { - my @args = $object->SetAttribute(Name => 'ICalURL', Content => Digest::SHA1::sha1_base64(time)); + my @args = $object->SetAttribute(Name => 'ICalURL', Content => Digest::SHA::sha1_base64(time)); } elsif (defined $ResetURL) { my @args = $object->DeleteAttribute('ICalURL'); }