← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 491837] [NEW] Adding existing dataelement throws exception

 

2009/12/4 Hieu Dang Duy <hieu.hispvietnam@xxxxxxxxx>

> Dear Lars and everyone,
>
> Please have a look at into dataelement.js file with the function *
> validateAddDataElement*(). I see that we have an id called type in *'&type='
> + getSelectValue( 'type' )* but actually this id does not exist in *
> addDataElementForm.vm* file. Just only have two kinds of type are *domainType
> *and *valueType*.
>
> Anyway, if we are using return on submitting action which is not always
> stable. I am sure about that because I am also using this way while checking
> on uploading the excel file in Import Excel File function of Excel Reporting
> module. It's not frequently working fine, somehow ?!?
>
> Ref*: <form id="addDataElementForm" action="addDataElement.action"
> method="post" onsubmit="return validateAddDataElement()">*
>
> On Thu, Dec 3, 2009 at 7:22 PM, edem <ekossi@xxxxxxxxx> wrote:
>
>> Public bug reported:
>>
>> when you add an existing dataelement, dhis2 throws exception instead of
>> saying this dataelement already exists
>>
>> ** Affects: dhis2
>>     Importance: Undecided
>>         Status: New
>>
>

Hi Hieu and Edem, thanks for spotting that! I have fixed it in trunk.


Lars

Follow ups

References