Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux fb110d6679 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797790 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 14:32:25 +00:00
Jacques Le Roux 4e529f7055 Improved: Writer closed but not in case of exception
(OFBIZ-9388)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the Writer creation and before it's closed the 
Writer remains in memory.

The solution is to use try-with-ressources when possible, even when finally was
used (no problems then).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797742 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 07:34:28 +00:00
Deepak Dixit 3708ada432 Fixed: CostServices.xml#getProductCost fail currency conversion.(OFBIZ-9387)
Thanks Wai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797733 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 06:12:22 +00:00
Jacques Le Roux ec2f674a92 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

I noticed Groovy has no try-with-ressources statement. I put a comment in
the description of OFBIZ-9296 "Update Gradle to 2.4.10" Maybe a solution would
be to use streams but really WTF! It seems Gradle 2.5 has autocloseable...

This contains also some refactoring and code cleaning




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797373 13f79535-47bb-0310-9956-ffa450edef68
2017-06-02 11:25:17 +00:00
Jacques Le Roux fd8af94e07 Fixes a typo just introduced with r1797222 (missing "}")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797224 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 13:42:18 +00:00
Jacques Le Roux e76e9c04de No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797222 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 13:23:40 +00:00
Jacques Le Roux a98186ad28 No functional change, removes not referenced empty services implementations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797169 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 09:17:19 +00:00
Jacques Le Roux 75316e1f57 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797158 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:10:51 +00:00
Jacques Le Roux b1a7a0f9a8 No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

This is a weirdo badly written double case but with some refactoring 
I can confirm it works at 
https://localhost:8443/facility/control/ViewFacilityInventoryByProduct
which uses the getProductInventoryAndFacilitySummary service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797155 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:07:36 +00:00
Jacques Le Roux e49d09f7dd No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797097 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 18:43:05 +00:00
Jacques Le Roux 9f635d26e2 Fixed: Find Projects throw "EntityListIterator Not Closed for Entity" error
(OFBIZ-7406)

Steps to regenerate issue:
1. Go to PROJECTS component
2. Click on sub-menu "Projects"
3. Click on find button
________________________________________________
#Browse the link:
https://localhost:8443/projectmgr/control/FindProject

This is similar with OFBIZ-9385 but the case is one of the convoluted. 
The fix is though rather simple: use try-with-ressources and refactor around

Thanks: Vaibhav Jain for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797079 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 17:25:36 +00:00
Jacques Le Roux b6e1e35f81 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797074 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 17:16:15 +00:00
Jacques Le Roux 00a3ff4b6f Improved: Greater precise value overriding price in order
(OFBIZ-9145)

I encounter a problem when try to re-enter orders originally created in another 
system (not ofbiz). And I found some cases when it's not possible to reproduce 
it exactly due to some promo rules triggered in this another system. 
But I must. Difference .01 is important.

Solution would be if I can change the unit price in an existing order using 
value with 3 digits after decimal point. I found that if I add new order item 
and check "Override" price I am able to enter more precise values.

But if I update unit price in an existing order item I am not, updateOrderItems 
rounds it to 2 digits. Exactly the same intention but works differently.

This makes me think we can remove rounding in second case. 
I believe if user want to change the unit price he knows why.

jleroux: despite slightly changing the behaviour of updateOrderItems, I see no
crucial reasons why we would not do that. The consistency aspect is here 
important.


Thanks: Oleg Andreyev

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797066 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 16:09:11 +00:00
Gil Portenseigne f2fac1a18f Fixed: Convert AcctgAdminServices.xml mini-lang to groovyDSL (OFBIZ-9372)
Related to task OFBIZ-9350 Deprecate Mini Lang, convert services createPartyAcctgPreference, getPartyAccountingPreferences, setAcctgCompany, updateFXConversion and getFXConversion from mini-lang to groovyDSL
Commited slightly modified patch from Leila, implementing Jacques and Deepak recommendations.

Thanks to Jacques and Deepak for the review, Leila for the provided patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796731 13f79535-47bb-0310-9956-ffa450edef68
2017-05-30 07:14:27 +00:00
Nicolas Malin 0185345b7a Fixed: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
related to task OFBIZ-9350 Deprecate Mini Lang, convert service updateRateAmount, deleteRateAmount updatePartyRate and deletePartyRate from mini-ang to groovyDSL
Thanks to Deepak for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796428 13f79535-47bb-0310-9956-ffa450edef68
2017-05-27 16:23:31 +00:00
Deepak Dixit 18d4cc3381 Improved: Replace fields with "id-ne", "id-long-ne" and "id-vlong-ne"
with "id", "id-long" and "id-vlong" respectively which are primary keys
(OFBIZ-9351)
Thanks Aditya Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796379 13f79535-47bb-0310-9956-ffa450edef68
2017-05-27 11:28:36 +00:00
Deepak Dixit d5bcaaedf8 Improved: Inconsistent String Comparisons, Applied application groovy patch from jira issue. (OFBIZ-9254)
I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.

Thanks Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1795341 13f79535-47bb-0310-9956-ffa450edef68
2017-05-16 17:16:05 +00:00
Deepak Dixit 590573f9f2 Improved: Remove hard-coded success/error message variables set in service output (OFBIZ-9303)
Thanks Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1795340 13f79535-47bb-0310-9956-ffa450edef68
2017-05-16 17:02:22 +00:00
Jacques Le Roux 3985db4da0 No functional change.
Fixes a typo in the FK names

Thanks: Ron for reporting in dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794378 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 14:17:51 +00:00
Jacques Le Roux e11e1b6275 Implemented: Removed most dependencies from OFBiz framework to plugins
(OFBIZ-9322)

Completes r1793170 

Removes duplicates data that should rather be in the PartyDemoData.xml
Moves and merges data from DemoPaymentsInvoices.xml to PartyDemoData.xml
Moves and merges data from DemoOrderTestData.xml to PartyDemoData.xml

Note that if later we want to have data located with tests data like those moved 
from DemoOrderTestData might need to be located again in order component. But
anyway then a lot of data would need to be moved. For now we rely on the 
components loading order defined in applications component-load.xml

Tests pass


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794092 13f79535-47bb-0310-9956-ffa450edef68
2017-05-05 18:30:20 +00:00
Jacques Le Roux 15b5845572 Implemented: Removed most dependencies from OFBiz framework to plugins
(OFBIZ-9322)

Completes r1792866

This in DemoProduct.xml (accounting) duplicates the same in ProductDemoData.xml
It fit more in ProductDemoData.xml (product) so I remove it from DemoProduct.xml

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793764 13f79535-47bb-0310-9956-ffa450edef68
2017-05-04 10:14:13 +00:00
Taher A. Alkhateeb e8b889a497 Fixed: removed duplicated data for PartyStatus
Ref discussion: https://s.apache.org/T2UD

Thanks: Jacques Le Roux for reporting


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793717 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 21:17:08 +00:00
Jacopo Cappellato 349355ce9e Fixed: corrected a wrong UI label name that was causing an error in the
financial account transactions screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793652 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 14:26:50 +00:00
Taher A. Alkhateeb 7b32c6a2b8 Implemented: remove final remaining dependencies from framework on plugins
(OFBIZ-9322)

This commit completes the removal of final dependency on plugins. After this
commit tests can run successfully on framework stand-alone. This is achieved by
removing portions of failing tests described in more detail in below ML thread

Discussion thread: https://s.apache.org/3fiL


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793633 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 10:44:55 +00:00
Taher A. Alkhateeb fb175b9d2e Fixed: Remove all dependencies from OFBiz framework to plugins
(OFBIZ-9322)

Further removed dependencies on demo data defined in ecommerce by modifying
the following data items:
- Move the DemoSupplier demo data from ecommerce to accounting
- Move the PartyIdentificationType of "CARD_ID" from ecommerce to party

This brings down total failing tests to only two


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793170 13f79535-47bb-0310-9956-ffa450edef68
2017-04-29 07:07:29 +00:00
Jacques Le Roux eabcc96c5f Fixed: Create and use an OWASP PolicyFactory for content sanitization in
ContentWorker for Birt Flexible Reports
(OFBIZ-9166)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792939 13f79535-47bb-0310-9956-ffa450edef68
2017-04-27 18:46:36 +00:00
Taher A. Alkhateeb 1d6c5ffad1 Implemented: Removed most dependencies from OFBiz framework to plugins
(OFBIZ-9322)

This is the first commit to removed dependencies on the ecommerce plugin data
by moving the following files to applications:
- DemoStandardCosting to applications/accounting/data/
- DemoOrderPeopleData.xml to applications/order/data/
- DemoOrderTestData.xml to applications/order/data/
- DemoProduct.xml to applications/order/data/
- DemoRentalShipping.xml to applications/order/data/
- DemoShipping.xml to applications/order/data/

Also modified some data on the below files to fix dependency order
- applications/product/data/ProductDemoData.xml
  (move facility data needed for tests from plugins)
- applications/marketing/data/sfaDemoData.xml
  (move data to DemoOrderPeopleData.xml)
- applications/party/testdef/data/PartyTestsData.xml
  (status does not exist)
- applications/workeffort/testdef/data/WorkEffortTestData.xml
  (status does not exist)
- applications/workeffort/minilang/test/WorkEffortTests.xml
  (depends on planHours which is defined in project componnent)

And finally updated the below component files with the moved data
- applications/order/ofbiz-component.xml
- applications/accounting/ofbiz-component.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792866 13f79535-47bb-0310-9956-ffa450edef68
2017-04-27 11:39:04 +00:00
Deepak Dixit a40e9e194c Improved: Removed old data migration services. (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792788 13f79535-47bb-0310-9956-ffa450edef68
2017-04-26 18:15:26 +00:00
Deepak Dixit afbd2d635f Fixed: Added seca to ensure party role on createQuoteRole invoke (OFBIZ-9331)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792638 13f79535-47bb-0310-9956-ffa450edef68
2017-04-25 18:22:51 +00:00
Jacopo Cappellato 54aec4d949 Fixed: accounting quantity was not updated when a physical inventory variance
was created.
(OFBIZ-9324)

Thanks: Ingo Wolfmayr for the detailed bug report.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792609 13f79535-47bb-0310-9956-ffa450edef68
2017-04-25 12:58:14 +00:00
Deepak Dixit bb9973b3a2 Fixed: Removed testCreateQuoteRole test case, as we converted createQuoteRole service to entity-auto. (OFBIZ-9331)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792275 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 09:25:37 +00:00
Deepak Dixit 65f97c28f3 Improved: From Date and Thru Date doesn't reflect on List Quote Roles screen.Applied slightly different patch from jira issue (OFBIZ-8266)
Thanks Akshay Modak for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792272 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 08:26:39 +00:00
Deepak Dixit 8a63bec92d Fixed: Fixed c/p error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792271 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 08:17:09 +00:00
Deepak Dixit ae634e1896 Improved: Converted create and remove QuoteRole service to entity-auto also added update and expire QuoteRole service.(OFBIZ-9331)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792270 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 07:59:45 +00:00
Deepak Dixit 7829c73623 Improved: Removed Old Commented EditProductPriceRules screen adn EditProductPriceRules_old.groovy file,
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792191 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 11:59:25 +00:00
Deepak Dixit 8281ef4642 Improved: Removed humanres/entitydef/entitymodel_old.xml, it was left in tree. (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792183 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 11:24:17 +00:00
Deepak Dixit 7fb5c14fe3 Improved: Removed deprecated entity related migration service, also removed some more deprecated entities that are located in entitymodel.xml instead entitymodel_old.xm (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792182 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 11:21:32 +00:00
Deepak Dixit b15d57c11a Improved: Removed deprecated entities. (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792176 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 10:31:59 +00:00
Wei Zhang 7427f9f794 The viewSize should be converted Integer for multiplication
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792020 13f79535-47bb-0310-9956-ffa450edef68
2017-04-20 07:25:58 +00:00
Jacopo Cappellato 727101dfc2 Fixed: removed explicit includes of HtmlTemplate.ftl from FreeMarker templates
since this has been deprecated and it is no more supported.
(OFBIZ-9325)

Improved the nextPrev macro by moving some logic from the template to the macro.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792018 13f79535-47bb-0310-9956-ffa450edef68
2017-04-20 06:38:20 +00:00
Jacques Le Roux 6ed37e208c Improved: Create New Quote button is duplicated on View Quote page
(OFBIZ-9318)

Steps to regenerate:
1. Go to Order component 
 (https://localhost:8443/ordermgr/control/main)
2. Click on Quotes submenu 
 (directing to https://localhost:8443/ordermgr/control/FindQuote)
3. Click on Find button.
4. Click on any quoteId 
 (directing to https://localhost:8443/ordermgr/control/ViewQuote?quoteId=CQ0001)
5. Create New Quote button is duplicated.

Problem:
1. "ViewQuote" request directs to "ViewQuote" screen in QuoteScreens.xml.
2. On ViewQuote screen, it includes "QuoteSubTabBar" from OrderMenus.xml.
3. "QuoteSubTabBar" has a "Create New Quote" button.

But as with OFBIZ-7841, to make it consistent Create New Quote button is added
 to menu bar.

Solution:
Removed the button to avoid redundancy.

Thanks: Aditya Sharma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791804 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 16:14:49 +00:00
Jacques Le Roux 429ed19020 Improved: Proper validation must be there while creating product attributes
(OFBIZ-7452)

Go to Catalog -> product
Select any product and then switch to attributes tab
Find Add Product Attribute form, proper validations must be there.

Thanks: Suraj Khurana

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791752 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 07:30:26 +00:00
Jacques Le Roux 7188a6d2d6 Improved: No quick ship option with back ordered products
(OFBIZ-7220)

When an order contains back ordered products the quick ship option should not
be available


Thanks: Padmavati Rawat for report, Suraj Khurana for solution and patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791751 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 07:21:11 +00:00
Jacques Le Roux ac9eced07f Fixed: Routing should not be allow to update with empty routing name
(OFBIZ-7375)

Steps to regenerate -
1) Navigate to manufacturing -> Routing
2) Press New Routing button.
3) Try to create a routing without entering Routing Name. It will not allowed to 
   create the record as routing name is mandatory field.
4) Create routing by adding proper details.

5) Now, select newly create routing from manufacturing -> Routing
6) Try to update selected routing with empty Routing Name.

Actual   : Routing can be update with empty Routing Name.
Expected : Routing should not allow to update with empty Routing Name.

Thanks: Ankit Joshi for analysis and patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791634 13f79535-47bb-0310-9956-ffa450edef68
2017-04-16 20:56:52 +00:00
Deepak Dixit caac1033e0 Fixed: Applied slightly modified patch from jira, Employment Applications in Party manager does not list any record even if they exist (OFBIZ-9220)
Thanks Aditya Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791490 13f79535-47bb-0310-9956-ffa450edef68
2017-04-15 11:15:43 +00:00
Deepak Dixit 76e52a62d8 Fixed: Editing quantity of configurable products changes actual product
(OFBIZ-9225)
Thanks Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791475 13f79535-47bb-0310-9956-ffa450edef68
2017-04-15 09:07:44 +00:00
Jacques Le Roux 68c8bcd028 Implemented: Special characters displays in From Date UI label field in forum
screen
Improved:
(OFBIZ-7850)

1. Go to Find Forum group list page 
    https://localhost:8443/content/control/findForumGroups
2. Select one of the Forum from the available forum list.
3. On this Forum Group page, In Add Forum and List Forums section, the UI label 
	From Date Time displayed "From Date & Time", it should be corrected to 
	display From Date Time.

jleroux: patch obsolete, I had to change things by hand

Thanks: Gopal Yadav

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791473 13f79535-47bb-0310-9956-ffa450edef68
2017-04-15 08:52:59 +00:00
Jacques Le Roux 5ce5947cc3 Fixed: WorkEffort Keywords does not list
(OFBIZ-9315)

1) Go to workEffort component.
2) Create a new task from New Task button 
    https://localhost:8443/workeffort/control/mytasks
3) After creating Task with required fields, click on keywords tab.
4) Add a WorkEffort keyword. 
   https://localhost:8443/workeffort/control/EditWorkEffortKeywords?workEffortId=10000
5) Keyword added should be listed on Find WorkEffort keyword section. 
(Not listing in current scenario)

jleroux: actually you don'-t need to create a task. Simply use the pre-existing
one (task1). When you get to the keywords tab you don't see already
pre-existing keywords. The fix allows to show them


Thanks: Jagpreet Kaur

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791342 13f79535-47bb-0310-9956-ffa450edef68
2017-04-14 10:44:03 +00:00
Jacques Le Roux 7a0fc4f061 Fixed: WorkEffort shows error on party assignment
(OFBIZ-9314)

Steps to reproduce:
Go to workEffort component.
2) Create a new task from New Task button 
    https://localhost:8443/workeffort/control/mytasks .
3) After creating Task with required fields, click on parties tab.
4) Screen for WorkEffort Party Assignment will be displayed.
5) Choose any party and role.
6) Click on Add. Error will be displayed.

Solution:
Any party is assigned to a WorkEffort on specific role, hence it is necessary 
that party should be in that role first (PartyRole).
Added code which make sure the party should be in given role (i.e service call 
to ensurePartyRole).

Thanks: Jagpreet Kaur

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791277 13f79535-47bb-0310-9956-ffa450edef68
2017-04-13 16:56:58 +00:00
Jacques Le Roux f2d8d02b90 No functional changes, just formatting and grouping exceptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1790524 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 08:45:06 +00:00