Given
* Set WEBFORMS = SomeTWikiForm, AnotherWeb.AnotherTWikiForm,
in
WebPreferences AnotherTWikiForm
is not clickable in "changeform"
but
SomeTWikiForm
because the code checks existence of the topic
AnotherWeb.AnotherTWikiForm
in the current web instead of
checking for
AnotherTWikiForm
in
AnotherWeb
.
Here is the patch
-- TWiki/UI/ChangeForm.pm (revision 11463)
+++ TWiki/UI/ChangeForm.pm (working copy)
@@ -80,7 +80,9 @@
};
$props->{checked} = 'checked' if $form eq $formName;
$formList .= CGI::input( $props );
- my $formLabelContent = ' ' . ( $store->topicExists( $web, $form ) ? '[['.$form.']]' : $form );
+ my ($formWeb, $formTopic) = $session->normalizeWebTopicName($web, $form);
+ my $formLabelContent = ' ' . ( $store->topicExists( $formWeb, $formTopic ) ?
+ '[['.$formWeb.'.'.$formTopic.']['.$form.']]' : $form );
$formList .= CGI::label( { for => $formElemId}, $formLabelContent );
}
$page =~ s/%FORMLIST%/$formList/go;
Thanks for fixing an annoying little bug which I have also encountered and thought was a lack of feature. Adding to hotfix-4.0.4-4
KJL