Commit Graph
19816 Commits
Author SHA1 Message Date
Adrian Crum bd2edf26f6 Fixed a bug in ajaxUpdateAreaPeriodic JS function - the interval parameter is seconds, not milliseconds.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487923 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 16:44:23 +00:00
Jacques Le Roux 890b2e0abb A slightly modified patch from Parimal Gain for "Find Order functions - Not working when junk values entered for product Id" https://issues.apache.org/jira/browse/OFBIZ-5201
Problem specification and step -
1) Go to Order Manager app > Find Orders
2) Enter valid product id for which order exists
3) Relevant orders with entered product value would be shown in search results
4) Enter invalid product id - JUNK value
5) Error behvaior:All orders on the system would be highlighted 
6) Actual behavior: No order should be shown as search results, as no order exists with this JUNK product id on system

Observation -
When looked into code level found that system apply check for two condition -
1) If passes productId starts or ends with % or * then add that in condition list as it is and it returns all order that contains the word for product Ids.
2) If the above condition is failed the check if the product corresponding to product id is present or not.
3) If exists then check for variants (if its virtual)all this.
4) If product not exists then the action is missing i.e. no condition is added and it returns all order available.

Recommendation -
There are two ways to solve the issue -
1) If product corresponding to passes productId is not present then return message to user that order is not present.
2) If the thought process for current behavior is show all record if product not available then user should get a message as well that "Order is not available for your search product but we have all these order in system" to convey the correct message to user. 

jleroux: The 1st solution is used. I simply added in label that no productId entered would return all the orders, also in French



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487854 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 13:21:28 +00:00
Adrian Crum 7d7407caba New feature - Column screen widgets. This enables easy layout of multi-column screens/reports. The columns are rendered as <table> elements - so no more broken layouts caused by unpredictable floats, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487587 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 18:17:46 +00:00
Jacques Le Roux 33e003d376 Sometimes, when the server is a bit slow, it's enjoyable to know it. This spin waiter will help in those cases
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487405 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 08:47:43 +00:00
Hans Bakker 73eb987ddd make payment method field optional on the edit payment screen to show the paymentmethod is empty. when mandatory the field will always show filled even if empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487357 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 07:21:07 +00:00
Hans Bakker ff2c038a34 improve payment form to select payment method depending on organization party
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487323 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 06:41:13 +00:00
Jacques Le Roux 5928ebd2e0 Related to https://issues.apache.org/jira/browse/OFBIZ-4332 "Pagination in find order screen doesn't work (With patch)" but not the real issue which is only for R11.04 and R10.04
This screen did not take into account the widget.form.defaultViewSize properties, here is the needed change

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487130 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 21:31:12 +00:00
Adrian Crum c1cc2308b0 Updated the HTML DOCTYPE declaration - paving the way for HTML5.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486831 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 09:21:36 +00:00
Adrian Crum 57205498d6 Fixed some FIXMEs in MacroFormRenderer.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486828 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 09:14:42 +00:00
Adrian Crum a67fd498c1 Clean up code formatting in MacroFormRenderer. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486784 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 07:11:39 +00:00
Adrian Crum f1a85663d1 Entity engine optimization: Use SELECT * when the fields to select have not been specified.
There was some code to check for this, but it was testing a "fields to select" List that was never empty, so SELECT * was never used.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486552 13f79535-47bb-0310-9956-ffa450edef68
2013-05-27 09:49:02 +00:00
Hans Bakker 48d62a2bfb remove partystatus from the PartyRoleAndPartyDetail view, causes demo data to not show up and multiple status records will show duplicates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486016 13f79535-47bb-0310-9956-ffa450edef68
2013-05-24 11:31:06 +00:00
Hans Bakker 6a070b08fb remove not existing fields in demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485975 13f79535-47bb-0310-9956-ffa450edef68
2013-05-24 08:50:51 +00:00
Jacques Le Roux 334c716283 Add a mean to collect and show the Requests Events durations using Metrics https://issues.apache.org/jira/browse/OFBIZ-5198
This has involuntarily slipped in, thanks to Adrian who reviewed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485620 13f79535-47bb-0310-9956-ffa450edef68
2013-05-23 09:05:38 +00:00
Jacques Le Roux eb9f05e7aa Add a mean to collect and show the Requests Events durations using Metrics https://issues.apache.org/jira/browse/OFBIZ-5198
Fulfill the goal with some more:
* makes the Metrics main parameters (estimationSize, estimationTime and smoothing) dynamically changeable (added in serverstats.properties)
* there is no threshold handling for event metrics


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485601 13f79535-47bb-0310-9956-ffa450edef68
2013-05-23 07:55:14 +00:00
Jacques Le Roux 65c327a5f9 A sligthly modified patch from Jonatan Soto for "ConcurrentModificationException when cancelling an order" https://issues.apache.org/jira/browse/OFBIZ-5194
After the order gets cancelled, there is a loop in OrderView.groovy@122 that removes promotional order line items retrieved from the OrderReadHelper class when cancelled. This is what makes the ConcurrentModificationException to be thrown.

For further details, check out the following thread at the dev mailing list: http://ofbiz.markmail.org/message/vmm65cmbf5hkmqm6?page=2

jleroux: I simply put a comment and removed the useless temporary orderItemListFiltered variable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485432 13f79535-47bb-0310-9956-ffa450edef68
2013-05-22 21:29:02 +00:00
Adrian Crum fa77ee6655 Fixed a bug in the entity engine pk cache where view entities went stale - https://issues.apache.org/jira/browse/OFBIZ-5192.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484279 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 12:29:44 +00:00
Adrian Crum 00e0e6555d Fixed a problem in Web Tools that was caused by recent entity model changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484268 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 10:58:14 +00:00
Adrian Crum e0ccd44b0f Small improvement to the Performance Metrics feature - sort by name the list of metrics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484150 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 17:31:45 +00:00
Adrian Crum e5099432a0 Fixed a bug in the performance metrics feature where the wrong request Map was being updated in some cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484145 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 16:46:01 +00:00
Adrian Crum 9bd42ec3a2 Reverted revision 1483822.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484134 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 16:12:50 +00:00
Jacques Le Roux 929a06dfd5 Improves the Metrics stats by adding a new column used only by requests. It's quite useful to measure the real (not smoothed) durations of events in notably *chained* requests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1483822 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 14:21:02 +00:00
Jacques Le Roux 8ca89fc25d Reverts r1482796 and comments about no current implementation rather than removing attributes
Thanks to Jacopo's comment in dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482911 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 15:38:43 +00:00
Jacques Le Roux 3abb2933d6 When I moved XA Pool to the Attic I forgot to remove these XA Pool specific attributes. They were now misleading.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482796 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 12:50:54 +00:00
Jacopo Cappellato 352bed051d Fixed typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482689 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 06:27:41 +00:00
Hans Bakker 893b2db5f9 spelling error in accounting request corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482665 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 03:08:30 +00:00
Adam Heath 7b9961afcd FEATURE: In NoTransaction.call, completely unwrap all nested exceptions, and re-wrap the innermost one. This is just like InTransaction.call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482509 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:38 +00:00
Adam Heath 952e43cdb5 FEATURE: When calling services from an incoming http requests, allow for a different request and session attribute name to be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482508 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:31 +00:00
Adam Heath 8133384848 FEATURE: Add TimestampToString converter; this parallels the existing StringToTimestamp implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482507 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:22 +00:00
Adam Heath 01822c38e0 FEATURE: Add safeAdd, which protects against BigDecimal addition when the right operand is null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482506 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:16 +00:00
Adam Heath ff32c8ebda FEATURE: In makeItem(), move the production validation code to a separate helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482505 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:08 +00:00
Adam Heath de328403ab FEATURE: In makeItem(), move the product lookup code into it's own helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482504 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:02 +00:00
Adam Heath a4b4054c77 FEATURE: Remove use of empty ArrayList/HashMap, instead using
Collections emptyList/emptyMap.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482441 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 16:38:30 +00:00
Adam Heath dbfb52c701 FORMATTING: Improve formatting; no single-line if, use {} for if.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482440 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 16:38:23 +00:00
Hans Bakker e72c65e187 add an optional timeout parameter to the ftp service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482177 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 02:53:33 +00:00
Adam Heath 8b9c0e537b OPTIMIZE: Remove all SuppressWarnings("unchecked") from the entity
engine.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482152 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 23:52:52 +00:00
Adam Heath ec142071b0 FEATURE: If the user gets forcibly logged out, store a message into the
request that mentions this; currently, nothing uses this, but that is
coming soon.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482132 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:20 +00:00
Adam Heath 4e5c0a7647 FIX: in urlEncodeArgs, don't call obj.toString if the obj is an Array or
a Collection; instead, iterate over each memeber and encode that.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482131 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:12 +00:00
Adam Heath e787885bb6 FEATURE: Allow events to return "none"; they can already return null,
which stops processing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482130 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:04 +00:00
Adam Heath da1f1f92e6 FEATURE: Allow first-visit and preprocessor events to run "none"; this
is the same as null, and will stop processing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482129 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:55 +00:00
Adam Heath 2b25d70adf FEATURE: Split checkLogin, creating checkLogout, which is a helper
method that returns a valid UserLogin entity, or null if permissions or
other reasons cause it to be invalid for the current scenario.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482128 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:47 +00:00
Adam Heath 2ebf5a22ed FEATURE: Make isUserLoggedIn(request), loginUserWithUserLoginId(request,
response, userLoginId) and hasBasePermission(userLogin, request) public,
instead of private/protected.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482127 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:40 +00:00
Adam Heath 2046bec01a FIX: Forgot to add this new file when I added the ability to disable ssl
certificate checking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482126 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:32 +00:00
Adam Heath 805dce79b8 FIX: I have no idea why an explicit <mkdir> is neeeded for build/rmi; in
all cases I could find, it was already auto-created.  It's only the
buildbot that is broken.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482125 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:25 +00:00
Adam Heath 2cbd5ac701 FEATURE: Add a join() variant that takes a collection.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482069 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:06:11 +00:00
Adam Heath 92079f7a65 OPTIMIZE: join() now calls UtilValidate.isEmpty().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482067 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:06:03 +00:00
Adam Heath 43e898976b FORMATTING: Add some final newlines in a few files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482066 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:56 +00:00
Adam Heath 64b3c95c45 FIX: Start using ${externalKeyParam} everywhere consistently. I only
did what was included by the main ordermgr view order screen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482065 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:47 +00:00
Adam Heath 105854b8f6 FEATURE: Add ability to disable client and server side certificate
checking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482064 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:33 +00:00
Adam Heath a5385a682f FEATURE: Reworked to expose a getSSLContext helper method, called by
everything else.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482062 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:26 +00:00