Find Content page
(OFBIZ-9279)
How to reproduce :
1. Log in the Content component
2. Go to the Content tab. https://localhost:8443/content/control/findContent
3. In the search form, open the lookup of the field ' Owner Content Id '
4. Click on any of the table header links to sort the table. Results will be
displayed on a new unstyled window closing the Lookup dialog.
Problem:
1. Lookup dialog for ownerContentId uses "ListLookupContent" form to list
Content records.
2. "ListLookupContent" form extends "ListContent" form for all the fields.
3. Sort-field is set to true in "ListContent" form for all the fields.
4. Sort-field adds <a> hyperlink to "LookupContent" .
5. When clicked <a> link it moves to a new page and doesn't renders the response
in the Lookup dialog.
Solution:
First of all it is a lookup to select ownerContentId so as the pattern followed
in other lookups in OFBiz it should not have any sort-fields.
To set it false, it should be overridden. If all fields needs to be overridden
it is better not to extend "ListContent" form and add these fields right away.
Apart from that added 'header-row-style="header-row-2"' to form.
Thanks: Aditya Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789874 13f79535-47bb-0310-9956-ffa450edef68
Find Content page
(OFBIZ-9280)
How to reproduce :
1. Log in the Content component
2. Go to the Content tab. https://localhost:8443/content/control/findContent
3. In the search form, open the lookup of the field ' Data Resource Id '
4. Click on any of the table header links to sort the table. Results will be
displayed on a new unstyled window closing the Lookup dialog.
Problem:
Problem:
1. Lookup dialog for dataResourceId uses "ListLookupDataResource" form to list
Data Resource records.
2. "ListLookupDataResource" form extends "ListDataResource" form for all the
fields.
3. Sort-field is set to true in "ListDataResource" form for all the fields.
4. Sort-field adds <a> hyperlink to "LookupResource" .
5. When clicked <a> link it moves to a new page and doesn't renders the response
in the Lookup dialog.
Solution:
First of all it is a lookup to select DataResourceId so as the pattern followed
in other lookups in OFBiz it should not have any sort-fields.To set it false,
it should be overridden. If all fields needs to be overridden it is better not
to extend "ListDataResource" form and add these fields right away.
Apart from that added 'widget-style="smallSubmit"' to dataResourceId according
to the uniform pattern followed.
jleroux: I added the header-row-style="header-row-2" style
Thanks: Aditya Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789863 13f79535-47bb-0310-9956-ffa450edef68
Michael suggested in dev ML that we don't show the error in UI because VIEW_SIZE
is only technical, which I agree with. The log is enough.
Actually it was already the case because I missed to move the
if (errMsgList) {
request.setAttribute("_ERROR_MESSAGE_LIST_", errMsgList)
}
block below the now caught NumberFormatException
So I just need to remove the 2nd line in the catch, done.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789736 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
While working on OFBIZ-7759, I stumbled upon this by chance.
It's unlikely that this NumberFormatException is ever caught, but not a reason
to swallow it.
I checked there are no other swallowed exceptions in Groovy files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789710 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7759)
How to reproduce :
- Log in the Content component
- Go to the Content tab
- In the search form, open the lookup of the field ' Owner Content Id '
- Click on the search button
- In the result list, click on a button link in the column 'Data Resource Id'
- The form to edit the Content will be displayed (a whole OFBiz seems to be
accessible from this new page)
- Close the lookup.
- Try to reopen it, it doesn't show anything anymore.
Problem:
1. Lookup dialog for ownerContentId uses "ListLookupContent" form to list
Content records.
2. "ListLookupContent" form extends "ListContent" form for all the fields.
3. As fields dataResourceId and ownerContentId are extended fields they creates
a link to Edit pages.
Solution:
First of all it is a lookup to select ownerContentId so as the pattern followed
in other lookups in OFBiz it should not have any links to Edit page. If links
are removed there will not be the problem as well.
Apart from that added 'widget-style="smallSubmit"' to contentId according to
the uniform pattern followed.
Link to edit ownerContentId shows contentId in description rather than
ownerContentId in "ListLookupContent" form , updated that too.
Thanks: Florian Montalbano for report and Aditya Sharma for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789665 13f79535-47bb-0310-9956-ffa450edef68
transaction in place
(OFBIZ-9286)
While working on OFBIZ-8202 ("Use try-with-resources statement wherever it's
possible") I missed that you must begin the transaction before the
try-with-resources, this fixes it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789045 13f79535-47bb-0310-9956-ffa450edef68
Removes a superfluous empty line (ProductSearchSession class)
Removes usless same embedded GenericEntityExceptionS in another
GenericEntityException (ShipmentServices class)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789044 13f79535-47bb-0310-9956-ffa450edef68
<<With code like the above, I think that embedding everything in the try
clause makes the code a bit less readable. One option would be to split the
entity query code in two lines>>
I used this suggestion on all locations it made sense. In few places it was
better to let it as is; separating would rather make the code a bit less
readable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1788263 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9268)
The hot-deploy removal was discussed at https://s.apache.org/7Y2w
This completes the previous commit at r1787461
Note:
We need to remove or implement with Gradle the "depends-on" feature in
ofbiz-component files
IMO, the applyOfbizPatchesAndHotDeploy.sh and svnUpHotdeploy.bat scrupts should
be removed, done
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787473 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9232)
Refactoring various list forms into grids
Refactoring various list form references in screen widgets
This was reverted and is now back with bugs fixed
Thanks: Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787185 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9229)
Refactoring various list forms into grids
Refactoring various list form references in screen widgets
This was reverted and is now back with bugs fixed
Thanks: Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787184 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9252)
Place an order and click on create as new order button on order detail page.
All the information is properly copied over to that order but order terms are
not copied to newly created order.
Order Terms should be copied while creating cart object.
Thanks: Suraj Khurana
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787133 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8290)
This removes some unused labels from the accounting component.
Because of OFBIZ-8154 being unfinished (but mostly done), I all checked them by
hand. So I'm sure they are really unused
Note: Remains 304 unused Accounting labels
Thanks: Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787132 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8191)
Add a create Routing tab bar in the main decorator to maintain the consistency
throughout the tab bar of Routing.
Thanks: Avnindra Sharma for the patch, Pierre Smits for review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787087 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9260)
This is not really a bug because IIRW, for historical reason, we handle both in
labels management. But this is really a problem when you use the "Validate"
option in Eclipse. Because those errors add to others and make complicate to
spot important issues in XML code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787024 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9229)
I found 1 error I did not spot earlier
<grid name="ListCostComponentCalc"
uses type="list"
I prefer to revert because the grid concept is questionned by Taher. No need to
complicate later if we ever revert it all
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786987 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9232)
I found 2 errors I did not spot earlier
<grid name="ListAgreements"
uses type="list"
<grid name="ListPaymentGroupMember"
does not end with </grid
I prefer to revert because the grid concept is questionned by Taher. No need to
complicate later if we ever revert it all
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786986 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9133)
go to https://localhost:8443/catalog/control/FindReviews
find productId=GZ-2644
notice the table columns do not match the data
Here the problem is :
1. FindReviews page includes "ListReviews" form to render this content.
2. Here "use-when" attribute is used with "field" element on "productRating"
and "productReview" for conditions "statusId != 'PRR_DELETED'" and
"statusId == 'PRR_DELETED'"
3. Citing documentation of "ignore-when": "This attribute is defined to enable
ignoring a field on a form of type list or multi, which is not possible using
use-when attribute".
4. So when condition is not true it renders a empty <td></td> causing data to
be placed inappropriately
5. Here if the "use-when" attribute is replaced with "ignore-when" attribute
it will make the columns to match with apt data.
Solution:
Replace "use-when" attribute with "ignore-when" attribute amending conditions
used accordingly.
Thanks: Wai Tam for the report, Aditya Sharma for the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786525 13f79535-47bb-0310-9956-ffa450edef68
not compare certain values correctly
(OFBIZ-6386)
After fixing the issue in
trunk r1786079
R16.11 r1786080
R15.12 r1786082
These tests were broken
auto-invoice-tests.testGlPostingOnCancelCheckRun
auto-payment-tests.testGlPostingOnCheckRun
This is due to expressions like this
<set field="totalPayableDebitAmount" value="${payableDebitTotal + 36.43}" type="BigDecimal"/>
Using a local BigDecimal fixes the problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786332 13f79535-47bb-0310-9956-ffa450edef68
link
(OFBIZ-9234)
To reproduce
# Get to https://demo-stable.ofbiz.apache.org/catalog/control/EditProduct?productId=GZ-1000
# Click on the "Product Page" button
You may notice an error which does appear erratically but most of the time,
same on trunk demo and locally.
This happens because sometimes the _BREAD_CRUMB_TRAIL_ session attribute is
empty or null. "Why not alway?" you might ask. I had no time to investigate but
I guess because there is no bread crum trail when coming from catalog, and for
some weird reasons, it's sometimes there.
Anyway my fix is simple, if there is no _BREAD_CRUMB_TRAIL_ in session
I bypass the bread crum block in BreadCrumbs.ftl. It's not perfect but look far
better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784708 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9216)
Go to Accouting --> Organization GL Settings -->Accounting button – >>
reports --> GL Account Trial Balance
this report the give me an error
Thanks: Moatasim Al Masri for report, Pierre Smits for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783202 13f79535-47bb-0310-9956-ffa450edef68