Sergei Biletnikov created OFBIZ-5450:
----------------------------------------

             Summary: Duplicated methods in the same simple methods script
                 Key: OFBIZ-5450
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5450
             Project: OFBiz
          Issue Type: Bug
          Components: content
    Affects Versions: Release Branch 12.04
            Reporter: Sergei Biletnikov
            Priority: Minor


I found in ofbiz.log, that we have duplicated simple methods in the same file:

2013-12-28 02:29:37,658 (default-invoker-Thread-16) [   
MiniLangValidate.java:185:WARN ] Duplicate method name found Method = 
createDataCategory, File = 
file:/D:/Projects/OFBiz-12.04/applications/content/script/org/ofbiz/content/data/DataServices.xml,
 Element = <simple-method>, Line 231
2013-12-28 02:29:37,658 (default-invoker-Thread-16) [   
MiniLangValidate.java:185:WARN ] Duplicate method name found Method = 
updateDataCategory, File = 
file:/D:/Projects/OFBiz-12.04/applications/content/script/org/ofbiz/content/data/DataServices.xml,
 Element = <simple-method>, Line 238

the fix is trivial, we should remove one of "createDataCategory", 
"updateDataCategory"   and "deleteDataCategory". "removeDataCategory" is used 
for the corresponding service.

Please, find the patch in the attachment.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to