Item9035: Plugin doesn't change field value

pencil
Priority: Urgent
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: MultiTopicSavePlugin
Branches:
Reported By: BigBaaadBob
Waiting For:
Last Change By: BigBaaadBob
I have a topic with a form that has a field with a value like this:
Screenshot0.png

I have a HTML form like this:

%MULTITOPICSAVESTARTFORM%

%IF{"$ multiedit = 'on'" then="[[%TOPIC%][Cancel editing and release locks]] , %MULTITOPICSAVESUBMIT{"Save all changes"}%" else="[[%TOPICURL%?multiedit=on][Edit and lock the topics]]"}%

|* Topic* | *Category* | *MCCategory* |
%SEARCH{
type="query"
search="name='SS2-ER0010'"
nosearch="on"
format="| [[$topic]] | $formfield(Category)  | %MULTITOPICSAVEINPUT{"Category" type="select" value="$value" options="XX" delay="1" editmode="%URLPARAM{"multiedit" default="off"}%" lockmode="on"}% | "
}%

%MULTITOPICSAVEENDFORM%

%MULTITOPICSAVEMESSAGE%

It produces something that looks like this (if I do the debugging code change shown below):
Screenshot1.png

And when I click on "edit and lock" it looks like this:
Screenshot2.png

And when I click on "save all changes: it looks like this:
Screenshot3.png

But the form in the topic doesn't get changed! If I go and look at the topic the field has the same value as it had at the beginning.

-- BigBaaadBob - 18 May 2010

Doing some debugging: If I change this line:

my $returnvalue = defined $value ? $value->{'value'} : '';

in MultiTopicSavePlugin.pm to read

my $returnvalue = defined $value ? $value->{'value'} : 'absolutelybogusvalue';

I get "absolutelybogusvalue" instead of blank in the form. Why isn't the field being read???

I updated all the above to include this debugging.

-- BigBaaadBob - 18 May 2010

This is pilot error! I didn't specify the target web/topic. Nevermind. Sorry.

-- BigBaaadBob - 18 May 2010
 

ItemTemplate edit

Summary Plugin doesn't change field value
ReportedBy BigBaaadBob
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component MultiTopicSavePlugin
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
I Attachment Action Size Date Who Comment
Screenshot0.pngpng Screenshot0.png manage 1 K 18 May 2010 - 16:41 BigBaaadBob  
Screenshot1.pngpng Screenshot1.png manage 8 K 18 May 2010 - 22:36 BigBaaadBob  
Screenshot2.pngpng Screenshot2.png manage 9 K 18 May 2010 - 22:39 BigBaaadBob  
Screenshot3.pngpng Screenshot3.png manage 7 K 18 May 2010 - 22:39 BigBaaadBob  
Topic revision: r2 - 18 May 2010, BigBaaadBob
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy