*** lib/TWiki/Plugins/EditTablePlugin.pm.orig Thu Jun 12 15:50:28 2003 --- lib/TWiki/Plugins/EditTablePlugin.pm Thu Jun 12 15:56:54 2003 *************** *** 144,150 **** if( $query->param( 'etsave' ) ) { # [Save table] button pressed ! doSaveTable( $theWeb, $theTopic, $tableNr ); # never return return; # in case browser does not redirect } elsif( $query->param( 'etcancel' ) ) { --- 144,155 ---- if( $query->param( 'etsave' ) ) { # [Save table] button pressed ! doSaveTable( $theWeb, $theTopic, $tableNr, "" ); # never return ! return; # in case browser does not redirect ! ! } elsif( $query->param( 'etqsave' ) ) { ! # [Quietsave] button pressed ! doSaveTable( $theWeb, $theTopic, $tableNr, "on" ); # never return return; # in case browser does not redirect } elsif( $query->param( 'etcancel' ) ) { *************** *** 397,403 **** my $text = "$preSp\n"; if( $doEdit ) { # Edit mode ! $text .= "$preSp\n"; if( $changeRows ) { $text .= "$preSp\n"; $text .= "$preSp\n" --- 402,408 ---- my $text = "$preSp\n"; if( $doEdit ) { # Edit mode ! $text .= "$preSp\n\n"; if( $changeRows ) { $text .= "$preSp\n"; $text .= "$preSp\n" *************** *** 577,585 **** # ========================= sub doSaveTable { ! my ( $theWeb, $theTopic, $theTableNr ) = @_; ! &TWiki::Func::writeDebug( "- EditTablePlugin::doSaveTable( $theWeb, $theTopic, $theTableNr )" ) if $debug; my( $meta, $text ) = &TWiki::Store::readTopic( $theWeb, $theTopic ); --- 582,590 ---- # ========================= sub doSaveTable { ! my ( $theWeb, $theTopic, $theTableNr, $quiet ) = @_; ! &TWiki::Func::writeDebug( "- EditTablePlugin::doSaveTable( $theWeb, $theTopic, $theTableNr, $quiet )" ) if $debug; my( $meta, $text ) = &TWiki::Store::readTopic( $theWeb, $theTopic ); *************** *** 638,644 **** $result .= "$_\n"; } ! my $error = &TWiki::Store::saveTopic( $theWeb, $theTopic, $result, $meta ); &TWiki::Store::lockTopic( $theTopic, "on" ); my $url = &TWiki::Func::getViewUrl( $theWeb, $theTopic ); if( $error ) { --- 643,649 ---- $result .= "$_\n"; } ! my $error = &TWiki::Store::saveTopic( $theWeb, $theTopic, $result, $meta, "", "on", $quiet ); &TWiki::Store::lockTopic( $theTopic, "on" ); my $url = &TWiki::Func::getViewUrl( $theWeb, $theTopic ); if( $error ) {