Commit Graph
14503 Commits
Author SHA1 Message Date
Hans Bakker 630bddb06c fix... set default image function in image management
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303328 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 09:39:05 +00:00
Ashish Vijaywargiya 3e390f9dd9 Bug fix: Source code of PaypalServices.java was not on classpath so was not giving build fail error when I build the source code last time. Fixing the build fail error.
Old log message:
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. 

Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1302276 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 05:50:47 +00:00
Jacopo Cappellato 4136875a6b Fixed issue reported in OFBIZ-4731: the ${bsh: syntaxt when used in value fields doesn't seem to work properly after the recent refactoring to the ScriptUtil and related mechanisms. Fixed by switching to ${groovy: syntax.
Even if there are plans to migrate all the scripts to the ${groovy: syntax, we will have to fix the root cause of this, also because there are several other occurrencies of the older sytax in the system.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1302274 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 05:38:58 +00:00
Jacques Le Roux 9a9b96356d Improves the LookupBulkAddProducts form by disabling the amount field when Product.requireAmount field is not "Y"
No needs to use return there. I also tried a simple UEL expression (ie removing groovy interpretation by removing "groovy:"), it did not work

This really shows that, at least OOTB, only one possible syntax should be used, else it's only confusing more!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1302210 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 19:54:38 +00:00
Jacques Le Roux 8b373ccbe7 Improve the LookupBulkAddProducts form by disabling the amount field when Product.requireAmount field is not "Y"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1302195 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 18:33:09 +00:00
Jacopo Cappellato b258844a7e re-enabled manufacturing automated test that I temporarily disabled yesterday.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1302101 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 09:21:22 +00:00
Erwan de Ferrieres a297da96dd Changes from while to for each loops in manufacturing component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301945 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 15:12:47 +00:00
Erwan de Ferrieres ceb6b06df1 Changes from while to for each loops in content component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301931 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 13:03:31 +00:00
Erwan de Ferrieres 2a35988fb5 Changes from while to for each loops in accounting component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301930 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 13:01:26 +00:00
Jacopo Cappellato 30729104a5 Temporarily disabling automated tests that suddenly started to fail (because of DST?); I will reenable it tomorrow and will further research if it will still fail.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301587 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 15:09:52 +00:00
Erwan de Ferrieres 86abf0df4d Replacement of iterators with for each loops
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300812 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 05:30:33 +00:00
Hans Bakker 6d090b8bcd unwanted change in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300497 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 10:30:38 +00:00
Hans Bakker a2c5814eca fix the setup component, move some paypal gateway code back to seed again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300496 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 10:24:05 +00:00
Ashish Vijaywargiya eb372bb2ba On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Hans Bakker 0372daa663 OFBIZ-4638: make ofbiz run with openjdk7,6. Contribution of Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1299985 13f79535-47bb-0310-9956-ffa450edef68
2012-03-13 06:50:41 +00:00
Jacques Le Roux 88c36b6f38 Commenting this whole block, it does not make sense to me and prevent to prevents to show products of a sub-category, just try:
https://demo-trunk.ofbiz.apache.org/ordermgr/control/category?category_id=202/~pcategory=200 

You will get: Category not found for Category ID 202/~pcategory=200!

I kept the same in product component: the screen does not seems to be used anymore

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1299171 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 09:38:58 +00:00
Ashish Vijaywargiya 1974f30849 Applied patch from jira issue OFBIZ-4722 - The completePack service times out for large orders. Though the code should be looked for possible optimizations, but increasing timeout value is also required.
Thanks Atul!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1298945 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 17:48:53 +00:00
Jacopo Cappellato 9986094080 Updated all the controller entries for Groovy event to consistently use the same way to define the location for the script file. Now the path and filename are always in the "path" attribute and the "invoke" attribute is reserved for the execution of a method in the file (I am going to add support for this feature in my next commit); if the invoke element is not specified then the whole script is executed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1298904 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 16:17:12 +00:00
Jacopo Cappellato 77a06931a3 Minor cleanup to improve readability; no fuctional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1298430 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 15:30:54 +00:00
Jacopo Cappellato 1929a81b25 Removed unused and duplicated file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1297620 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 18:01:02 +00:00
Scott Gray 05bf68608a Demo data bugfix: productTypeId is a required field of Product and records shouldn't be put into the db without supplying a value for it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1297416 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 10:54:36 +00:00
Hans Bakker 30341d3d54 reverting 1295029 on request from jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1297007 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 11:16:35 +00:00
Jacques Le Roux 819cd54f92 A patch from Shi Jinghai "out of range index exception in ShoppingCart.getAdjustmentPromoIndex()" https://issues.apache.org/jira/browse/OFBIZ-4720
This has obviously never been tested. Incrementing a positive or 0 value with only a test on being > 0 can only end with and out of range index exception :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296875 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 21:13:15 +00:00
Jacques Le Roux c6288f1d46 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Jacques Le Roux 21fe6fb550 Fixes https://issues.apache.org/jira/browse/OFBIZ-4719 "Error "org.ofbiz.webapp.event.EventHandlerException: Service invocation error (null)"
Took me a moment to decide to commit this changes. But after many researches and tries I could not find a better solution. 

So simply avoid possible NPE there if a wrong paymentId is entered in createPaymentApplication screen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296697 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 20:46:47 +00:00
Jacques Le Roux 72fcba2ab0 A patch from Mike (mz4wheeler) "Product NOTFOUND causes java.lang.NullPointerException, ugly screen, and excessive logging" https://issues.apache.org/jira/browse/OFBIZ-4599
Fixes a possible NPE

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296597 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 11:01:19 +00:00
Jacques Le Roux a523706f2d Fixes wrong French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296595 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 10:40:18 +00:00
Scott Gray a1a1bd615c Fix some incorrect BigDecimal comparisons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296567 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 02:55:25 +00:00
Hans Bakker 4989e15c0d correct url generation for seo friendly url's
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1295029 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 09:23:36 +00:00
Hans Bakker 29007fd1fd get default currency from entity and if not available from general.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294940 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 02:01:29 +00:00
Jacopo Cappellato ae4b4f0535 Fixed permission service for creation/update of order adjustment that was completely wrong (probably because it has been copied from another service from the Party component and then not properly completed): the end result was that the service always granted the rights to perform the task.
As a side note, the service is still using incorrectly the _ROLE permission but this is a broader issue (a wrong pattern used everywhere in OFBiz) and for this I would like to fix it everywhere after discussion with the community.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294291 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 19:26:23 +00:00
Jacopo Cappellato 82c68734f6 Removed incorrect usage of hasRolePermission method calls: using hasRolePermission in this way without passing the actual roles to be checked had as a consequence that the _ROLE permission was exactly the same of the main permission.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294277 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 19:07:38 +00:00
Adrian Crum 4bba1391d2 Minor UI layout fixes in Find Facility Location screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294166 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 14:10:20 +00:00
Jacques Le Roux 906cca0620 A patch from Chatree Srichart "OrderListState needs to be Serializable for clustering" https://issues.apache.org/jira/browse/OFBIZ-4660
OrderListState is to be set to session, so it needs to be Serializable for clustering.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294090 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 10:21:51 +00:00
Jacques Le Roux 0acaefd402 A patch from Nicolas Malin "On extend form, use call-parent-actions element to run the herited form action" https://issues.apache.org/jira/browse/OFBIZ-2889
On widget form at this time the actions on parents form is not executed if child form contains also actions.
A solution is to implement a new element call-parent-actions on <actions> and <row-actions> element.
for more info see : http://markmail.org/message/hy3puy3fhpzqo7fd

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293565 13f79535-47bb-0310-9956-ffa450edef68
2012-02-25 10:00:43 +00:00
Adrian Crum fd908c8f5c Fixed UI layout in some facility screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293233 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 12:50:22 +00:00
Jacopo Cappellato e1eaa6a763 OFBIZ-4715: implemented new mechanism to dynamically select (if available) a country specific ftl template to render the postal address on screen.
Based on an initial patch contributed by Markus M. May

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293204 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 12:12:00 +00:00
Sascha Rodekamp e80b1a30f1 Add german translation to AccountingErrorUiLabels.xml (https://issues.apache.org/jira/browse/OFBIZ-4713) A patch from Markus M. May, First minor adoption of some translations, there are still a lot translations missing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292703 13f79535-47bb-0310-9956-ffa450edef68
2012-02-23 08:29:05 +00:00
Hans Bakker 6483991b5d only show party attributes if they have content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292662 13f79535-47bb-0310-9956-ffa450edef68
2012-02-23 06:40:38 +00:00
Hans Bakker b93ec25b74 auto approve image function in catalog image management
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292661 13f79535-47bb-0310-9956-ffa450edef68
2012-02-23 06:38:38 +00:00
Anil Patel cbcec43d92 [OFBIZ-4712] fix GenericModelException in product search when there is no valid keyword in the query string.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292530 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 21:52:21 +00:00
Anil Patel 003117d668 [OFBIZ-4714] Fix for null values on contact fields. Markus, Thanks for contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292506 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 21:12:27 +00:00
Adrian Crum e99f864f55 A bunch of work in Marketing Campaign: fixed UI layout, removed redundant and unused services, fixed services that didn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292343 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 15:26:39 +00:00
Jacopo Cappellato e5f967c4b7 OFBIZ-4710 Applied modified patch from Deepak Dixit to fix the following issues:
* if the user attempts to receive a cancelled order then receive inventory page showing a stack trace
* in the first step of the receiving screen, the autocompletor for lookup purchase order displaying duplicated order ids

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292331 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 15:01:21 +00:00
Hans Bakker 573ffea86c remove all component dependent stamements out of commonext and make the systeminfo service more generic and not only serving portlets. Comment by Adrian in the userlist. No conversion program provided because this data is only temporary can can be deleted from a menu
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292180 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 08:35:59 +00:00
Anil Patel 531689c992 firstNameOnCard can be empty as well. Set some default value like we got for last name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292089 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 00:11:56 +00:00
Sascha Rodekamp 72921af958 German Translation for CommonExtUiLabels (https://issues.apache.org/jira/browse/OFBIZ-4708): A patch from Markus M. May
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1291707 13f79535-47bb-0310-9956-ffa450edef68
2012-02-21 11:01:01 +00:00
Jacques Le Roux a65a3eacb1 Closes "Request Content delete operation is not working" https://issues.apache.org/jira/browse/OFBIZ-4707
There were simply no checks on thruDate in screen actions, also true for Project Manager and Scrum components.
Also where we see that we clearly miss a kind of factorization in those screen actions (same block changed 5 times), no time for that tonight...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1291472 13f79535-47bb-0310-9956-ffa450edef68
2012-02-20 21:54:30 +00:00
Ashish Vijaywargiya 7318b2fae0 Applied patch from jira issue OFBIZ-4703. In SupplierProduct entity, the type of the attribute 'supplierProductId' is id-long. But in OrderItem entity, the type of supplierProductId is id. This differs the size of the field in both entites which results in error while creating purchase order.
Provided the patch to resolve this bug.
Thanks Suprit. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1290891 13f79535-47bb-0310-9956-ffa450edef68
2012-02-18 22:09:34 +00:00
Jacques Le Roux 4dc123f3e3 A patch from Ankit Jain "If Picklist is Cancelled than all the PicklistItem related to that PicklistId should also get Cancel." https://issues.apache.org/jira/browse/OFBIZ-4690
If we cancel a picklist from Manage Picklist screen then this ECA will fire and cancel all the PicklistItem. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1290890 13f79535-47bb-0310-9956-ffa450edef68
2012-02-18 22:06:51 +00:00