Item9035: Plugin doesn't change field value
Priority: Urgent
Current State: No Action Required
Released In:
Target Release: n/a
I have a topic with a form that has a field with a value like this:
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):
And when I click on "edit and lock" it looks like this:
And when I click on "save all changes: it looks like this:
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