You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2009/11/18 07:16:17 UTC

Re: Update Survey Response?

Hi,

Did you experience an issue or was it only looking at code (I did not review code yet) ?
If you experienced an issues could you please give us

Why
    *  What you were looking for,
    * Wow did you try to achieve it
    * What did you expect as results
    * And what you really got
How
    # What you did (including detailed steps to reproduce)
    # What you expected to happen
    # What actually happened (including exact quotes of error messages, etc)
    # If possible provide an URL

Thanks

Jacques

From: "James McGill" <ja...@ableengineering.com>
>I found that "Edit Survey Response" always creates a new response, instead
> of updating one.
> 
> I believe this is a bug in
> applications/content/script/org/ofbiz/content/survey/SurveyServices.xml
> 
> ---
> applications/content/script/org/ofbiz/content/survey/SurveyServices.xml.orig
> 2009-09-30 00:27:18.000000000 -0700
> +++
> applications/content/script/org/ofbiz/content/survey/SurveyServices.xml
> 2009-09-30 00:28:06.000000000 -0700
> @@ -475,7 +475,7 @@
>         <!-- create/update the response -->
>         <if-compare field="survey.allowUpdate" operator="equals" value="Y">
>             <if-not-empty field="parameters.surveyResponseId">
> -                <entity-one entity-name="SurveyResponse"
> value-field="lookupRespMap"/>
> +                <entity-one entity-name="SurveyResponse"
> value-field="surveyResponse"/>
>             </if-not-empty>
>         </if-compare>
> 
> 
> -- 
> James McGill
> Able Engineering
> Phoenix AZ
>