BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.
JLR: This will maybe help to better understand some errors on demo servers, and can't hurt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954135 13f79535-47bb-0310-9956-ffa450edef68
In ProductWorker.java, method getAverageProductRating is used to calculate product's average rating. It is always return zero.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953294 13f79535-47bb-0310-9956-ffa450edef68
The line bypassed was specifically added for "Lookup Layer Search of a Variant Product" (https://issues.apache.org/jira/browse/OFBIZ-3746) - OFBIZ-3746
But it did not was generalized enough, this should handle all the other cases where a link is in a cell of the result list that is not the 1st one cell
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@952249 13f79535-47bb-0310-9956-ffa450edef68
Please committers use only target with parameter attribute (not in URL) for link and hyperlink fields when there is an action (ie DB modification)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@952119 13f79535-47bb-0310-9956-ffa450edef68
The Product duplicate function didn't really duplicate the product content, just set a reference to the original content.
When I now change the content from the duplicated product, the content of the original product is changed to.
So here is a patch that dublicate the content, dataresource and electronic text (if exists), too. The result is a true copy of the original product that can be edit without side effects to the original product.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951381 13f79535-47bb-0310-9956-ffa450edef68
The other option would be to change the method WidgetWorker.determineAutoLinkType() to allow inter-app target-type so that the method can
determine whether to change the hyperlink to a form or an anchor to avoid secured URL issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951087 13f79535-47bb-0310-9956-ffa450edef68
clean detected this error, as GeoData_US.xml wasn't imported yet, so I
got an exception when DE didn't exist. The patch in OFBIZ-3800 was
*not* correct, and was not verified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951062 13f79535-47bb-0310-9956-ffa450edef68
Move the supplier data detection to the Product Form and changes a few fields for a better overview. Just an improvement in data presentation, notably sorting columns
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951013 13f79535-47bb-0310-9956-ffa450edef68
A patch regarding the Category Rollup. This patch affects the edit Category Button Description. Before it was the Category Description if exits now it's a little bit more differentiated. The Category Name should displayed if exists and if not the Category Description
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951007 13f79535-47bb-0310-9956-ffa450edef68
This patch provides the fundamentals to resolve an issue where the sorting of null values were inconsistent (sometimes sorting first and other times sorting last). Specifically, this patch allows one to create an order-by clause via any of the order-by elements of "-myField NULLS LAST" where this text parses out the - (as descending) and the "nulls last".
Since not all databases support the "nulls" argument on an order by clause (it was introduced as part of the OLAP support specification) , our entity-engine.xml file allows each data source to indicate if it has this support. If the support does not exist and nulls first/last is specified, the sql that is generated uses native sql to simulate the nulls first/last intent. At this time, the derby, postgres, and oracle databases are marked to use the nulls first grammar.
Right now, if you do not specify "NULLS XXX" in the field-name for the order-by it makes no change whatsever (naturally this assumption could be changed to have a default).
It should be noted, that my intent here was ultimately to "properly" model the order by into something whose xml representation could look something like ...
<entity-order-by field-name="fieldName" ascending="true" nulls-first="true" />
Divesh Dutta added a comment - 07/May/10 01:44 AM HI Bob, This patch works as expected for derby, postgres, and oracle databases as you have already mentioned. Cant we have some generic solution which supports all the databases. Or we can have some conditional code, where we can check which datasource is being used, and then generate the sql accordingly. Please let me know your views on this.
Bob Morley added a comment - 07/May/10 08:07 AM
Hi Divesh,
I added a more detailed description in the forum thread; but in brief this is a generic solution which supports all databases which generates the sql accordingly. What this patch does not do is apply a standard default order for all databases; it just adds support for one to dictate how they want the nulls sorted.
For example, when one sets the order-by they can set it to "lastName DESC NULLS FIRST" which should apply to all databases.
The thread Bob was referring above ends at http://markmail.org/message/47z7fwtawehuem6b
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950901 13f79535-47bb-0310-9956-ffa450edef68
Data to associate the country with states isn't present. This issue is with reference to discussion started by R.S. on user-mailing list subjected as "StateList"
R.S., thanks for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950893 13f79535-47bb-0310-9956-ffa450edef68
This fixed a bug with inactive financial account(s) which does show up while creating a new payment or creating a batch of payments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950892 13f79535-47bb-0310-9956-ffa450edef68
For AGGREGATED product, the service "calculateProductPrice" doesn't refer to a product store, in order to select the right registered product price between different productStoreGroupId.
This patch add productStoreId to the price context in order to select the right registered product price
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950870 13f79535-47bb-0310-9956-ffa450edef68
In the Drop Down field is always the Key Catalog_Category selected. This Patch change the behavior and select a default product Category Type Id
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950864 13f79535-47bb-0310-9956-ffa450edef68