Skip to content

Commit

Permalink
Item13934: Item13868: Add TOPICINFO, fix unescaped braces
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jan 27, 2016
1 parent b0a903a commit 53bb390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion data/System/MultiTopicSavePlugin.txt
@@ -1,3 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1448386968" format="1.1" version="1"}%
%META:TOPICPARENT{name="Plugins"}%
---+ Multi Topic Save Plugin

Expand Down Expand Up @@ -385,6 +386,7 @@ One line description, required for extensions repository catalog.
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change&nbsp;History: | <!-- versions below in reverse order -->&nbsp; |
| 24 Nov 2015 (1.11) | Foswikitask:Item13868: Add TOPICINFO to the Extension topic. |
| 27 Jul 2015 (1.10) | Added placeholder option to MULTITOPICSAVEINPUT for text type fields |
| 04 Jul 2015 (1.9) | Call multi_param, not param, to process lists. |
| 25 Jul 2014 (1.8) | Added the ability to treat the topic text as a field called 'text' |
Expand All @@ -399,4 +401,4 @@ One line description, required for extensions repository catalog.
| Home: | http://foswiki.org/Extensions/%TOPIC% |
| Support: | http://foswiki.org/Support/%TOPIC% |

%META:FILEATTACHMENT{name="example.png" attachment="example.png" attr="h" comment="" date="1436067299" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="example.png" attachment="example.png" attr="h" comment="" date="1448386968" user="ProjectContributor" version="1"}%
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/MultiTopicSavePlugin.pm
Expand Up @@ -36,10 +36,10 @@ BEGIN {

# $VERSION should always be in the format$Rev: 9013 (2010-09-12) $ so that Foswiki can
# determine the checked-in status of the extension.
our $VERSION = '1.10';
our $VERSION = '1.12';

# $RELEASE is used in the "Find More Extensions" automation in configure.
our $RELEASE = '1.10';
our $RELEASE = '1.12';

# Short description of this plugin
# One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic:
Expand Down Expand Up @@ -611,7 +611,7 @@ sub restMultiTopicSave {
# parameters{topicname}{field}=value where value can be an array of
# values from select fields
foreach my $key ( $query->param() ) {
if ( $key =~ /^multitopicsavefield{(.*?)}{(.*?)}$/ ) {
if ( $key =~ /^multitopicsavefield\{(.*?)\}\{(.*?)\}$/ ) {

my $topic = $1;
my $fieldName = $2;
Expand Down

0 comments on commit 53bb390

Please sign in to comment.