Replaces "?if_exists" occurences by !
Removes a test on "?has_content" when not needed (! is enough).
Removes "?if_exists" when useless (after ?has_content)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684030 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I simply replaced "?if_exists" occurences by ! and removed a test on "?has_content" when not needed (! was enough). I will continue in the same spirit on files I committed recently (Forrest Rae's patch) and earlier
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684026 13f79535-47bb-0310-9956-ffa450edef68
A couple updates are needed to the postalAddressPdfFormatter screen:
First, the screen template is set to use the HTML renderer which results in this error in the log:
[java] 2015-06-03 13:44:53,400 |0.0.0.0-8009-exec-13 |ModelScreenWidget |W| In platform-dependent could not find template for xsl-fo, using the one for html.
Second, the various PostalAddressXXXX.fo.ftl files do not escape XML properly, and addresses with an & in them end up causing a FreeMarker template error.
Test: For number 1, just get a "Report" for a quote, and then look at your log file. For number 2, add an "General Correspondence" address to a party that contains an ampersand, like "5th & Oak Street", create a quote for that Party, and then get the "Report" for that quote.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683998 13f79535-47bb-0310-9956-ffa450edef68
This is one part of the translation to Arabic project found
in JIRA OFBIZ-6432 to fully translate OFBiz to Arabic.
The commit translates the following files fully:
- AccountingUiLabels.xml
- AccountingEntityLabels.xml
- AccountingErrorUiLabels.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682592 13f79535-47bb-0310-9956-ffa450edef68
This adds translations (entity, error, UI) for the party component.
Thanks Martin Becker for reporting the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682466 13f79535-47bb-0310-9956-ffa450edef68
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
This adds a "Create Website Path Alias" menu item to the WebSiteAliases view and allows to edit/delete teh entries.
Thanks Pierre Smits for reporting the issue and Willem Janssen for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682295 13f79535-47bb-0310-9956-ffa450edef68
ModelFormField.getEntry returns the string representation of the value corresponding to the field in either the context map or parameters map but when the value is returned as a list [X, Y, Z], the opening and closing brackets are encoded [X, Y, Z]
This prevents the FormRenderer (atleast MacroFormRenderer) from detecting a list object from the string and converting it back to a list
eg - currentValueList = StringUtil.toList(currentValue).
The solution detects a collection value and handles the proper encoding.
Thanks Gareth Carter for reporting the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682234 13f79535-47bb-0310-9956-ffa450edef68
Removed unnecessary double checks and corrected exception handling where the catched exception was too broad.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682214 13f79535-47bb-0310-9956-ffa450edef68
In a multi-tenant setup configuration of the number of rows returned as well as the show the result on accessing a search find screens in project mgr needs to be configurable per tenant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682160 13f79535-47bb-0310-9956-ffa450edef68
Introduces a new maxlength attribute to the textarea element in forms, applies the maxlength (255 chars) value in several FTL files, when the DB is limiting the length.
Thanks Forrest Rae for reporting the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682132 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I suspected it was only a matter of replacing "${bsh" by "${groovy" in *.xml. But I had not the guts to get into 11(!) sub tasks.
So, in Eclipse, I simply did a S/R in *.xml and compared parts of my changes with some Pierre's most "complex" patches respectively product, ebaystore, projectmgr and scrum.
They were totally similar (just revisions number changed) so here is the whole.
I will later improve these changes by removing HTML entities when possible, this is a bit more delicate because in some cases the XML schema are not complete (or/and for other still obscure to me reasons) and if you simply replace HTML entities by simple code (eg &Amp; by &) you get issues in logs when the XML parser cross them...
Note: only menus, screen and forms are changed here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682118 13f79535-47bb-0310-9956-ffa450edef68
Adds a read-only attribute to the text input field. Using the display type is not enough, because it's uneasy to assign values through Javascript as using the lookup description-field-name shows OOTB. And the disabled option is not good when you want to still show the submitted values on return.
Also
* improves widget-form.xsd documentation about read-only attribute for lookup
* completes the foFormMacroLibrary.ftl where placeholder tabindex were missing (if this even ever makes sense)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680921 13f79535-47bb-0310-9956-ffa450edef68
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
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