Data Resource bug - Please review

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Data Resource bug - Please review

Chris Juettner-2
I believe I have found and corrected a bug in the simple method named "createDataResource" (short-description="Create a Data Resource") located in DataServices.xml.  The dataTemplateTypeId is undefined in the original code but is passed as a valid field in the paramenters map.  Please review for accuracy and make the change if appropriate.
 
Original code:
 
        <if-empty field-name="dataTemplateTypeId">
            <set field="newEntity.dataTemplateTypeId" value="NONE"/>
        </if-empty>

 

Corrected code:

       <if-empty field-name="parameters.dataTemplateTypeId">
            <set field="newEntity.dataTemplateTypeId" value="NONE"/>
        </if-empty>
 
 
Thanks
 
Chris Juettner
Integral Business Solutions
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Data Resource bug - Please review

Jacques Le Roux
Administrator
You are right Chris,

Committed in trunk revision 614081, release4.0 614083

Thanks

Jacques

From: "Chris Juettner" <[hidden email]>

>I believe I have found and corrected a bug in the simple method named "createDataResource" (short-description="Create a Data
>Resource") located in DataServices.xml.  The dataTemplateTypeId is undefined in the original code but is passed as a valid field in
>the paramenters map.  Please review for accuracy and make the change if appropriate.
>
> Original code:
>
>        <if-empty field-name="dataTemplateTypeId">
>            <set field="newEntity.dataTemplateTypeId" value="NONE"/>
>        </if-empty>
>
>
>
> Corrected code:
>
>       <if-empty field-name="parameters.dataTemplateTypeId">
>            <set field="newEntity.dataTemplateTypeId" value="NONE"/>
>        </if-empty>
>
>
> Thanks
>
> Chris Juettner
> Integral Business Solutions
>
>
>
>