Commit Graph
2222 Commits
Author SHA1 Message Date
Taher A. Alkhateeb 07cb144a6c Translate the framework to Arabic
Another part of the translation of OFBiz to Arabic 
project found in JIRA OFBIZ-6432.

The commit translates the following components (in varying degrees):
- Content
- Order
- Party
- WorkEffort
- more framework translations

refs https://issues.apache.org/jira/browse/OFBIZ-6432


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682725 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 12:13:45 +00:00
Taher A. Alkhateeb 423d83a51c Provide a fix for OFBIZ-6229 and allow creation of new Geos
Fix the following problems:

- The search screen results take you to the link geos.
  it should go directly to create / edit instead
- You cannot edit a geo because the parameter is not passed across 
  the tabs link and edit / create. The menus should be redefined
  to pass the parameter around
- The primary key is enforced in the service definition when 
  it should be optional to create new geos
- finally, the geoId should not be a lookup field as
  an entity cannot lookup itself

Refs https://issues.apache.org/jira/browse/OFBIZ-6229


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682415 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 10:43:41 +00:00
Jacques Le Roux 6ad4d92057 No functional change, just fixes a trivial formatting issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682282 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 17:06:31 +00:00
Michael Brohl 3ccfd17f1f Manually applied patch from jira issue OFBIZ-6310: createConditionList doesn't handle widget dropdown multi-submitted values when called by performFind. Adds detection if the field value represents a collection and in this case sets EntityOperator.IN instead of EntityOperator.EQUALS.
Thanks Christian Carlow for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682272 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 16:28:17 +00:00
Jacques Le Roux 55f5564611 A better patch from Adrian for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

jleroux: This reverts the previous patch from Gil. It did not occur to me that all the rest of the result was only commented out HTML code, so a simple trim was enough. Happy to get rid of this ugly kludge



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680881 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 14:18:16 +00:00
Jacques Le Roux 4e2ddf8f0a A patch from Gil Portenseigne for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

This patch use a trick to no care about widgetVerbose comments. Sad to use this kind of trick, but if not, spaces might not be trimed. With that, the display is perfect. No side effect detected. 

jleroux: I still regret Hans past attitude about widgetVerbose which initially forced me to this hack 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680873 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 13:45:02 +00:00
Adrian Crum 60cf53e27e Added visual theme seed data that was missed in rev 1648013.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680319 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 15:37:36 +00:00
Michael Brohl 2f107d8155 Applied patch from jira issue OFBIZ-5610: Date formats displayed in the title of the input field are not correctly showing the default format for UK but the actual date itself is correct.
I had to slightly modify the patch from "en_GB" to "en-GB" entries. Thanks Gareth Carter for reporting the issue and providing the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680219 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 09:49:37 +00:00
Deepak Dixit 169dedf9a2 Used UtilHttp.getLocale() to get the locale instead request.getLocale()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678911 13f79535-47bb-0310-9956-ffa450edef68
2015-05-12 11:02:42 +00:00
Jacques Le Roux 943e010b81 No functional changes, just simpler syntax, parenthesis not needed here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678298 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:58:47 +00:00
Jacques Le Roux 1711869690 Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678294 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:53:39 +00:00
Jacques Le Roux bdea0c167c Temporary reverts r1678291+1678292 to have only 1 commit easier for backporting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678293 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:31:57 +00:00
Jacques Le Roux 4ea39c7cef Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678291 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:24:10 +00:00
Jacques Le Roux 23c89bab02 This defines the NotoSans font as default for report and FOP-PDF examples
With NotoSans by default, no need to specify the NotoSans "font-family" to write special characters in examples PDF (including content called from example).
This already worked in reports because of "fop.font.family=NotoSans" in fop.properties. It's also the way to use for custom reports.

I also added <auto-embed/> like we have <auto-detect/> but I'm unsure of what it does exactly (I suppose it embeds the fonts glyphs in the PDF) because the FOP documentation is unclear about it (to say the least). If someone knows better please chime in!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675061 13f79535-47bb-0310-9956-ffa450edef68
2015-04-21 08:03:41 +00:00
Nicolas Malin 6fbf256c28 Change performfind test sequence to escape a random error with dbcp, related to issue OFBIZ-6218 Unit tests throw exception in DBCP. Thanks Adrian for report it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673269 13f79535-47bb-0310-9956-ffa450edef68
2015-04-13 20:14:10 +00:00
Deepak Dixit 15be736b7a Applied patch from jira issue OFBIZ-6222 - Change the field name 'tenantId' to 'userTenantId' from login page and ContextFilter
Thanks  Arun Patidar for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672853 13f79535-47bb-0310-9956-ffa450edef68
2015-04-11 09:43:10 +00:00
Nicolas Malin 7d94967a68 Convert javolution FastMap, FastSet and FastList by standard java.util.*
Related to OFBIZ-5781 Convert Javolution collections into Java collections
Thanks to Deepak Dixit and Adrian Crum for their help.

By defautl converted :
 * FastMap by HashMap
 * FastList by LinkedList
 * FastSet by HashSet

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672752 13f79535-47bb-0310-9956-ffa450edef68
2015-04-10 20:22:54 +00:00
Jacques Le Roux 1e9549818f Fixes a bug reported by Wai at https://issues.apache.org/jira/browse/OFBIZ-6234 "catalog main page show freemarker exception"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672252 13f79535-47bb-0310-9956-ffa450edef68
2015-04-09 07:40:15 +00:00
Jacques Le Roux f903bdc355 Fixes a bug related to renderDateTimeField reported by Adrian's aon dev ML (when used from FTL templates)
Fixes also a bug related to renderLookupField when used from FTL templates with lookupField macro

I also spotted a number of other misc. trivial tabindex missing in other *FormMacroLibrary.ftl which should have not (or minor) effects on rendering. I will fix them later today...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671519 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 12:11:18 +00:00
Nicolas Malin d445d74d19 Apply patch OFBIZ-6209 Error when call updateNote service report by Supachai Chaima-ngua
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1670952 13f79535-47bb-0310-9956-ffa450edef68
2015-04-02 19:04:49 +00:00
Adrian Crum f315f0d5be Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Jacques Le Roux a7e97a9abd Patches from Taher Alkhateeb for "party id cannot be specified through GUI while creating a Party (Person or Party Group)" https://issues.apache.org/jira/browse/OFBIZ-3480 reported by Babu Sreekanth
1. While creating an organization, it is possible to specify a meaningful party id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a Party (Person or Party Group). this means, all the parties created get a sequence id for party id.


If the user inputs a party ID to any of the party creation screens (person, party group, customer, employee or prospect) then that ID will be used, otherwise it will pull a party ID from the sequence bank






git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666794 13f79535-47bb-0310-9956-ffa450edef68
2015-03-15 12:02:41 +00:00
Jacques Le Roux fdb68903f1 Removes 2 old wrong ar labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664604 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 12:49:31 +00:00
Jacques Le Roux ec07424fcb Patches from Taher Alkhateeb for "Translations of CommonUiLabels.xml & CommonEntityLabels.xml to Arabic" https://issues.apache.org/jira/browse/4966
I have translated fully the framework/common/config/CommonUiLabels.xml & CommonEntityLabels.xml to Arabic. Attached is the patch for both files.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664602 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 12:38:42 +00:00
Jacques Le Roux 27c6b8dab5 Actually cleans unitData.xml after r1660412 for OFBIZ-6059
It was already there, I just committed it at r1660392

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660414 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 15:30:00 +00:00
Jacques Le Roux 129994acf2 A patch from Ron Wheeler for "UOM missing 2 entries" https://issues.apache.org/jira/browse/OFBIZ-6059
<Uom abbreviation="Pb" description="Petabyte of Data" uomId="DATA_Pb" uomTypeId="DATA_MEASURE"/>
<UomConversion uomId="DATA_Pb" uomIdTo="DATA_Tb" conversionFactor="1024"/>

were left out when PB was added.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660412 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 15:23:14 +00:00
Jacques Le Roux 046eb40f2a A patch from Ron on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660392 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 14:38:30 +00:00
Nicolas Malin f6bc517122 (OFBIZ-6047) Convert DataSource, Enumeration and Note entites CRUD service from simple to entity-auto. I remove also some end line space on CommonService.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656125 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 21:41:34 +00:00
Nicolas Malin 6fd6e8a049 A patch from Anne Jessel to Support filtering on non-std date field names in performFind and prepareFind (OFBIZ-4374).
With the difficulty to test, I create a new test-suite performfindtests with five junit :
 * testPerformFindConditionFieldEquals
 * testPerformFindConditionFieldLike
 * testPerformFindConditionDistinct
 * testPerformFindFilterByDate
 * testPerformFindFilterByDateWithDedicateDateField
I also improve TestNodeMember with two fields extendFromDate and extendThruDate to realize filter on it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655499 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 23:25:40 +00:00
Jacques Le Roux d5c3acb587 Slightly modified uilabels patch from Pierre Smits for Dutch translations https://issues.apache.org/jira/browse/OFBIZ-6016
jleroux: I have made some changes within these changes, in agreement with Pierre


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653224 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 11:05:22 +00:00
Jacques Le Roux 0f284fb6af Slightly modified bunch of uilabels patches from Pierre Smits for Dutch translations (Manufacturing, Order, Party)
https://issues.apache.org/jira/browse/OFBIZ-6018
https://issues.apache.org/jira/browse/OFBIZ-6019
https://issues.apache.org/jira/browse/OFBIZ-6020

jleroux: I have fixed some trivial issues within these changes, 
Wrong change at <value xml:lang="fr">OFBiz: Gestion commerciale</value>
Removed all Dutch changes which were simply duplicating the English ones

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653208 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 07:40:50 +00:00
Jacques Le Roux aa2b996605 A modified patch from Pierre Smits for "Adding som Dutch translations to common labels." https://issues.apache.org/jira/browse/OFBIZ-6016
jleroux: I removed 
3 specific comments
<!-- ORRTIZ: TAXREPORT -->
<!-- GEO -->
<!-- ORRTIZ:BMS Applications -->
2 duplicates
<value xml:lang="nl">Gesynchroniseerd</value>
<value xml:lang="nl">Req. - geannuleerd</value>
For the later I kept the old one which seems more complete

I replaced 2482 <value xml:lang="(.*)_(.*)"> by <value xml:lang="(.*)-(.*)">


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653143 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 22:32:25 +00:00
Adrian Crum dcecdd25a4 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Jacques Le Roux b8ca5543c9 Changes in all labels files: <value xml:lang="(.*)_(.*)"> to <value xml:lang="$1-$2">
Changes also listLocales.ftl to show dashes rather than underscores

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650880 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 09:59:32 +00:00
Jacques Le Roux 04748292cf A patch from Wai for "state/province dropdown contains incorrect items when Canada is chosen in country dropdown" https://issues.apache.org/jira/browse/OFBIZ-5933
When creating a postal address, selecting Canada for country automatically filled the state/province dropdown with values. The issue is that the values of the state/province dropdown list are incorrect.

I was expecting the options for the state/province dropdown to have the following:
name=Alberta, value=AB
name=British Columbia, value=BC
...

What is actually present in the drop down is:
name=AB, value=AB
name=AB, value=BC
...

One observation is that this issue does not appear when the country selected is the United States. It seems to happen with Canada.
Another observation is that this issue applies to the 'en' locale. It seems to work fine for 'fr' locale.

jleroux: this was OK for Saskatchewan, that leaded to the solution


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650642 13f79535-47bb-0310-9956-ffa450edef68
2015-01-09 20:19:17 +00:00
Adrian Crum 201162f6a4 Bug fix: remove invalid element from CommonUiLabels.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649669 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:40:46 +00:00
Adrian Crum 91feff5f51 Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Jacopo Cappellato a5879b6f8f Moved code dependent on OWASP ESAPI and utilities for codec tasks from StringUtil to a new UtilCodec class: now the UtilCodec class is the only class dependent on OWASP ESAPI.
The DefaultEncoder from OWASP ESAPI, used internally by UtilCodec is now built with the default constructor that also adds the JavascriptCodec to the list of codecs used to canonicalize and validate the input.
Renamed the UrlEncoder class to UrlCodec in order to better describe its behavior.
Misc minor cleanups.
Added to the list of tests of the base component a series of Junit test classes that were missing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648403 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 18:24:57 +00:00
Jacopo Cappellato b969e376ed A series of cleanup to the integration with OWASP ESAPI. Isolated dependencies on the external OWASP ESAPI jar into the StringUtil class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648298 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 09:24:46 +00:00
Jacopo Cappellato 99b7f462f2 Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Ashish Vijaywargiya 4656af219d Based on Adrian's comment on Dev list removing the ternary operator check which was not needed actually.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647239 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 05:04:18 +00:00
Ashish Vijaywargiya 0877607603 Bug fix, one small conditional check got missed in OFBIZ-5844 - Convert java files to EntityQuery.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646917 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 05:48:51 +00:00
Ashish Vijaywargiya f8927d3d3e Applied patch from jira issue OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue().
We have removed the recent changes that we did for <property-to-field> in XML file because those changes was not actually needed.
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646214 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 12:28:02 +00:00
Ashish Vijaywargiya 039f0608bc Applied framework related patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646212 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 12:13:46 +00:00
Jacques Le Roux 80587c18c2 Fixes "FTL error message is displayed on Return screen, when clicked on Return selected items button" https://issues.apache.org/jira/browse/OFBIZ-5909
This is a trivial error, I don't want to spend too much time on that, user should be careful else use the browser back button!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646204 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 11:38:04 +00:00
Ashish Vijaywargiya f19b8bdfe7 Reverting r1646165. It seems that changes that we did for <property-to-field> are not needed. I will commit the new changes soon.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646191 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 10:49:41 +00:00
Ashish Vijaywargiya d3e50d1e18 Applied patch from jira issue - OFBIZ-5892 - Replace all occurences of dispatcher.runSync in groovy files with runService() of DSL.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646167 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 08:10:12 +00:00
Ashish Vijaywargiya fa7cb8eb15 Applied recent patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue().
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646165 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 07:57:56 +00:00
Jacopo Cappellato 011cf444b9 Fixed NPE introduced with rev. 1644015
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644088 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 15:28:56 +00:00
Ashish Vijaywargiya 9e044d163a Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00