• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6358: Bug in extractchapterbylabel function when fromlabel isn't defined

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditChapterPlugin Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Bug report and fix discoverd via tweet http://twitter.com/itsyoursole_dev/status/5175935520 pointing to https://wiki.yoursole.com/git?p=twiki/.git&h=1700340c15

https://wiki.yoursole.com/git?p=twiki/.git;a=commitdiff;h=1700340c15;hp=ed6848846231d59558098fce95eda9b42443927e has this:

diff --git a/TWiki/Plugins/EditChapterPlugin/Core.pm b/TWiki/Plugins/EditChapterPlugin/Core.pm

--- a/TWiki/Plugins/EditChapterPlugin/Core.pm
+++ b/TWiki/Plugins/EditChapterPlugin/Core.pm
@@ -343,7 +343,7 @@ sub handleEXTRACTCHAPTERBYLABEL {
         #writeDebug("found end at $toPos");
-      if ($1 =~ /$theFrom/) {
+      if ($1 =~ /$theFrom/ && $theFrom) {
         $fromPos = pos($text) - length($line);
         #writeDebug("found start at $fromPos");

-- TWiki:Main/PeterThoeny - 27 Oct 2009

Summary Bug in extractchapterbylabel function when fromlabel isn't defined
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-5.0.0, Sun, 27 Sep 2009, build 18153
AppliesTo Extension
Component EditChapterPlugin
Priority Normal
CurrentState New


TargetRelease n/a

Topic revision: r1 - 2009-10-27 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback