[
http://issues.apache.org/jira/browse/OFBIZ-547?page=comments#action_12461568 ]
Chris Howe commented on OFBIZ-547:
----------------------------------
I'm not referring to the part that handles the form. That part looks fine.
The part that currently exists in the code (modified with your patch):
<if-empty field-name="parameters.fixedAssetId">
<sequenced-id-to-env sequence-name="FixedAsset"
env-name="newEntity.fixedAssetId"/>
<else>
Can return a duplicate Id. It can before the patch and it can after the patch.
So the returned value should be checked as well.
Since this issue is handling error messages for duplicate Ids we should fix it
here and also send a little bit of information to the log.
> Duplicate Id error on Create New FixedAsset
> -------------------------------------------
>
> Key: OFBIZ-547
> URL: http://issues.apache.org/jira/browse/OFBIZ-547
> Project: Apache OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Components: accounting
> Reporter: Anil K Patel
> Attachments: FixedAssedIdDuplicateMessage.patch
>
>
> While creating a New FixedAsset, if user enters FixedAssetId that already
> exists in system, Unfriendly message is returned and existing fixedAsset is
> opened in Edit mode.
> 1) The error message should be easier to understand by user.
> 2) Existing fixedAsset should not be opened in edit mode, this confuses user
> with Idea that fixedAsset was created.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira