There are many different i18n file naming approaches for language.country couple. For Traditional Chinese ... OFBiz uses java way: zh_TW, datepicker uses zh-TW, and el-rte needs this patch. It uses actually zh_tw, see the full version line 1108:
Dukian will file this issue to el-rte project too.
At r1044611 I 1st committed in jQyery branch, an habit to loose..
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044615 13f79535-47bb-0310-9956-ffa450edef68
To reproduce:
* go to Facility, Inventory Items tab (or any form that uses text-find widget)
* choose "Is Empty" from drop-down next to Product Id
* click Find button
Expected behaviour: no matching items listed, as all items have a Product Id.
Observed behaviour: all items match.
Problem is caused by find code assuming that there is no entity condition to be created if the text field is empty, but of course Is Empty is
different to the other operators in that the text field is expected to be empty.
The attached patch adds a special check for the Is Empty operator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042396 13f79535-47bb-0310-9956-ffa450edef68
To reproduce the bug:
* edit the EditProduct form in applications/product/widget/catalog/ProductForms.xml
* add a new field with a hyperlink sub-element.
* refer to this new field in the first, non-collapsible field-group in the sort-order
* go to this page in the UI (edit a product in the catalog)
* the Expand All and Collapse All buttons do not work properly
The problem is caused by the javascript finding the added hyperlink field in the first field-group, and incorrectly assuming it is
the expand/collapse link for the field-group. This causes the javascript to crash when it gets a null reference to an enclosing li element.
It is not specific to the EditProduct form, but applies to any group of collapsible panes where one contains a hyperlink.
The attached patch simply checks that the li element actually exists.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042348 13f79535-47bb-0310-9956-ffa450edef68
Moved the feature that allows a new user to register for an account from MyPortal to the framework so that it is available in any application.
It has also been slightly reworked (code cleaning and internationalization).
Two flags in general.properties allows to configure if the register function must be enabled or not and if the captcha function should be used.
The captcha function needs to be improved because at the moment the code is contained in an hidden field so that it is very easy for a computer to bypass it.
A possible fix for this could be to put the MD5 coding of the captcha code in the hidden field.
Then the event that checks the code should compare the MD5 codes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042196 13f79535-47bb-0310-9956-ffa450edef68
Added screenlet styles to the ecommain.css
Added several missin screenlet-body tags.
This allows better and more omogeneus rendering when mixing together FTL and screenlet widgets.
To be continued...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042133 13f79535-47bb-0310-9956-ffa450edef68
When "table name" is required to a "model entity" object, it throws a NPE if "datasource info" object is null.
JLR: I'm not quite sure in which occasions this fix is needed OOTB, but anyway it's safer indeed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040890 13f79535-47bb-0310-9956-ffa450edef68
This is not how it should be done. For instance when you update a postal address from a party profile you always get selected the default country. OFBiz records correctly the change underneath but it's confusing as you don't see the right information on screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040426 13f79535-47bb-0310-9956-ffa450edef68
Removed hard coded viewSize value from FindGeneric.groovy file. If viewSize is not available in parameters then read defaultViewSize from widget.properties and set it as a viewSize. Hard coded view size create inconsistency in pagination. i.e If result contains 15 items then view size displayed in dropdown is 20 and only (1 - 10 of 15 ) items displayed as a search result.
Thanks Deepak & Rishi for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040091 13f79535-47bb-0310-9956-ffa450edef68
The problem is, when you call a request over http, but the controller wants an https request, the RequestHandler make an redirect to https (which is indeed pretty cool). But this redirect causes that Events/ Services will be called twice. This can be avoided when we return from the Service/ Event directly after doing the redirect.
Example: http://localhost:8080/ecommerce/control/setdistributor?distributor=4711
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040044 13f79535-47bb-0310-9956-ffa450edef68
Improve the a random Password generation when the "require new password" function is called. In the current Trunk it's a kind of hard coded password that will be send to the user. After generating a new pass the "requireNewPassword" flag will be set to true (configurable).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038209 13f79535-47bb-0310-9956-ffa450edef68
Anne: some screen widgets set the field title-property instead of titleProperty. This causes errors in the logs, and means that the page title is not being set.
While preparing this patch, I discovered the labels referred to by some of these titleProperties were not available in Order component. However the missing ones were in Ecommerce. So I copied the missing ones to OrderUiLabels.xml.
JLR: instead of copying labels in OrderUiLabels.xml, I moved them to CommonUiLabels.xml: less and more consistent changes in the future.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037559 13f79535-47bb-0310-9956-ffa450edef68
Improve the Chinese translation of word 'Review' to make it same as the term used by local ecommerce suites.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036483 13f79535-47bb-0310-9956-ffa450edef68