Commit Graph
27737 Commits
Author SHA1 Message Date
Adam Heath c807dcea6f 100% coverage during testing now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923053 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:37:01 +00:00
Adam Heath d8553a3cef Add new helper method to make constructing simpler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923052 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:36:22 +00:00
Adam Heath 6466fae298 More coverage on ObjectType.simpleTypeConvert.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923051 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:35:44 +00:00
Hans Bakker 1a3f1ed2e7 move the check for filled in party id to the update reques status service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922851 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 14:02:46 +00:00
Hans Bakker 4381785ac5 add a common 'accept' label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922850 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 14:00:58 +00:00
Jacopo Cappellato b3c1fe01e3 Re-enabled automated test for production run date reschedule, now enhanced to support date ranges containing a DST change; thanks to Adrian Crum for the comments and Adam Heath for the bug report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922813 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 11:29:43 +00:00
Bruno Busco 644ca97f8c OFBIZ-3516
Fixed wrong screenlets display due to a no-clear style in the menu.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922800 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 09:24:54 +00:00
Adam Heath 4577e3afa4 Helper wrapper to protect against objects that have some kind of timestamp
checking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922758 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:57:12 +00:00
Adam Heath bef43eedb4 Since getTTL throws ConfigurationException, which is now a
RuntimeException, there's no need to declare it in the throws clause.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922757 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:55:52 +00:00
Adam Heath 45d2d66c02 ConfigurationException is now a RuntimeException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922756 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:55:23 +00:00
Adam Heath 809fdb9e88 Fixed coverage of the test cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922755 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:54:53 +00:00
Adam Heath 37f62c89e9 Follow junit best practices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922735 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:22:10 +00:00
Adam Heath 4ba13c9699 Fix formatting; some lines had a leading indent of 2 spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922734 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:21:42 +00:00
Adam Heath 2d40b49aff Thread.sleep takes a long, not an int, so convert the wait time to long calculations. Also, remove the use of new Double().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922733 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:21:14 +00:00
Adam Heath 641b22e58c Change visibility of purely internal methods to private, and make several instance variables final.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922731 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:20:45 +00:00
Adam Heath 579ff51707 SequenceBank no longer stores the bankSize.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922730 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:20:17 +00:00
Adam Heath 1647601757 SequenceBank no longer maintains a duplicate reference to SequenceUtil.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922729 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:44 +00:00
Adam Heath 23abe54e4e SequenceUtil no longer stores a reference to the ModelEntity at all.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922728 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:16 +00:00
Adam Heath be1f4c329c SequenceBank no longer uses ModelEntity at all.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922725 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:42 +00:00
Adam Heath 795b0cdbab Remove use of ModelEntity from fillBank.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922724 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:10 +00:00
Jacopo Cappellato d6c3b8b27b Disabled automated test that is sometimes failing because of bad calendar math. Thanks to Adam Heat and Adriam Crum for reporting this. I will re-enable it as soon as I will fix it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922514 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 10:22:59 +00:00
Ashish Vijaywargiya b040749318 Applied patch from OFBIZ-3533 - Associate Image functionality with ProductPromo using content driven.
Associate Image functionality with ProductPromo using content driven.

Following work will be covered: -

   1. Add new entity "ProductPromoContent" entity having composite primary key:
         1. productPromoId
         2. contentId
         3. productPromoContentTypeId
         4. fromDate
   2. CRUD services for ProductPromoContent Entity.
   3. Create wrapper ProductPromoContentWrapper
   4. Add content tab at catalog -> promo
   5. List and edit form for associating images to specific productPromoId.
   6. Implement service addImageForProductPromo.

Thanks Amit for the contribution.
Special thanks to Scott for his valuable comments.

PS: Scott regarding to you point # 2 in the last comment, I think it would be fine if we keep association as it in the current patch. Because all the ContentType already exists in the ProductContentType entity. In general we can associate Image, PDF or word document with any promotion so reusing existing entity will be fine IMO. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922506 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 08:46:57 +00:00
Ashish Vijaywargiya 2a808cfc42 Applied patch from jira issue OFBIZ-3550 - Use shopinglistType from request parameter instead of using default for addBulkFromCart event.
Thanks Parimal for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922504 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 08:39:57 +00:00
Adam Heath ed33d7ca17 Add red/green like shades to orderinfo and orderitem status areas, but
only for APPROVED and REJECTED statuses for now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922483 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 05:50:00 +00:00
Adam Heath cfb7efb850 Add support for filtering products inside categories based on their
introductionDate.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922482 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 05:48:55 +00:00
Jacques Le Roux c17aa76148 Add back groovyNature which I reverted along with groovyBuilder at r911202
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922190 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 09:35:27 +00:00
Hans Bakker fb05a37d04 allow story field of first requestitem to be updated together with the header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922187 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 09:09:27 +00:00
Jacques Le Roux 1b211fed29 A slightly modified patch from Geir Ove Grønmo "Calculation of promotions and price rules should support multi-level GROUP_ROLLUP" (https://issues.apache.org/jira/browse/OFBIZ-3440) - OFBIZ-3440
The calculation of product prices given promotion and price rules do not currently take multi-level GROUP_ROLLUP party relations into account.
The calculation of price rules consider two levels of GROUP_ROLLUP only, while the calculation of promotions take just a single level of GROUP_ROLLUP into account.
The attached patch will calculate price rules and promotions for GROUP_ROLLUPs for an arbitrary number of GROUP_ROLLUPs. This is essential in the situation where there are hierarchies of parties.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922177 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 08:27:42 +00:00
Hans Bakker 0856f9749a missing relation between customer request and custrequestnote
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922154 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 06:52:56 +00:00
Hans Bakker 2e505334d4 add a draft status to the customer request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922152 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 06:05:58 +00:00
Scott Gray c67b898060 Prevent html encoding of some header links in the tomahawk theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922151 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 05:59:31 +00:00
Scott Gray ecee6ae8a2 Replaced tabs with spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922150 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 05:59:28 +00:00
Jacques Le Roux 65ed20de81 Fix a security issue reported by Heidi Dehaes at "unsubscribe from a contactlist in the "profile" screen in the ecommerce screens" (https://issues.apache.org/jira/browse/OFBIZ-3396) - OFBIZ-3396
Actually this commit fixes rather 2 security issues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922042 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 22:25:32 +00:00
Adam Heath 8ccf42e1dd Fix bad caching. Previously, any call to getDelegator() would *always*
walk the entire classpath, trying to find all implementations of
DelegatorFactory.  This was fixed by moving the cache higher up.

In detail, the entity caching system only stored a String delegator
name.  It would then try to find the appropriate delegator to match that
name.  However, during a custom importer, the caching system was being
exercised very heavily, so DelegatorFactory.getDelegator() was being
called in a very tight loop.  Since the delegator instances were not
being cached at the high level, this caused a *big* slowdown; basically,
a 15 minute importer was taking over 2 hours, and was no near finishing.
This was because UtilObject.getObjectFromFactory would end up walking
the entire classpath, finding every jar, looking at every zip entry, to
try and find the appropriate file in META-INF/services.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921990 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:59:34 +00:00
Adam Heath a68617c9ad Pass the delegator into any create/init methods that end up setting any
field data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921989 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:58:13 +00:00
Adam Heath b4651644c8 Don't fetch the delegator with UtilObject, instead using
DelegatorFactory.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921987 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:57:33 +00:00
Adam Heath 9e36b4e16b End-user type code should not be calling the GenericEntity factory
methods.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921986 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:57:00 +00:00
Adam Heath 3576e8a260 run-single-test* targets now depend on build.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921985 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:56:21 +00:00
Adam Heath 9bcda83ad7 Remove runtime/logs/cobertura-report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921984 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:55:50 +00:00
Jacques Le Roux 9652e69f8f Allow double quote in title. This is possible because, at least OOTB, all title should be localized. Hence from a label in an XML file, and nothing prevent to use double quotes there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921773 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 10:17:15 +00:00
Hans Bakker d6056327ca Start/stop/restart ebay job problematic: fixed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921735 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 08:52:28 +00:00
Hans Bakker e664845431 removed tab 'block out of stock', (User can use enable auto block out of stock in selling manage tab ->auto perference section) so fixes issue 3548
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921715 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 08:00:46 +00:00
Jacques Le Roux a7a09a0817 As suggested by Adam and Scott move the encodeQuotes static method (actually renamed encodeDoubleQuotes) from UtilHttp to FreeMarkerWorker
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921714 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 07:57:27 +00:00
Hans Bakker 5875eef36a ebaystore: item status list from ebay which status is active, sold, unsold
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921699 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 06:14:56 +00:00
Jacques Le Roux ca38a526fa Following r921421, here is the right and simplest solution (KISS way).
Simply encoding the tooltip (why I did not think about that before, really sometimes I wonder how my brain is working, I need to stop working for it to begin to work)
There are no needs to encode char like >, but of course < is needed (in he XML file) since else there is a problem in the XML labels file (always the same issue: around vs inside)
So yes, it's only a matter of encoding at the right place, ie before the "around vs inside" issue arises
Good night ;)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921643 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 00:20:57 +00:00
Adrian Crum 615c3d83d1 Revert rev 902341 - which seemed to cause problems with the Derby database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921455 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 17:11:18 +00:00
Jacques Le Roux 248b851c03 Better explanation of lookup fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921432 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 16:23:29 +00:00
Jacques Le Roux be7c45c096 You can't use double quote in tooltips. I tried to find a quick way to allow this in MacroFormRenderer.appendTooltip() but gave up, too narrow need.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921421 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 16:12:30 +00:00
Jacques Le Roux 9fbb7f392c Fix a small encoding bug found in Example Widget form
Set default values for fields 4&5 (time dropdowns)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921401 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:29:44 +00:00
Jacopo Cappellato 0e57369c97 Reverted rev. 920359 (by erwan) and reimplemented in a cleaner way by refactoring the renderHyperlinkTitle code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921397 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:21:23 +00:00