1) Make createProductReview service definition more generic, so that it can take all nopk fields as IN parameters.
2) Change field value in "productreview.ftl" because field "postedAnonymous" is not a boolean type in ProductReview entity.
3) Make the service implementation more generic so that, it can be used for unregistered users also.
4) Put checks on pendingReviews.ftl to handle case of anonymous user.
Thanks Awdesh for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@824675 13f79535-47bb-0310-9956-ffa450edef68
Minor fix in code to return error and success message.
I will create the "How To" docs for this in next few hours on the OFBiz confluence.
As the present document is present in OFBIZ-1810.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781926 13f79535-47bb-0310-9956-ffa450edef68
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.
If anyone has a better solution, please feel free to revert this commit and change it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)
Of course this effort to remove trailing spaces has no functional implications.
Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {
So these changes are also in this commit, should not be a problem anyway.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
I fixed an, unrelated to patch, problem in EditProductContentContent.groovy. This is not the 1st time I cross this type of issue. I checked it does not appear on demo server and I guess it was not appearing with bsh before. I'm not sure of its origin but it seems related to my configuration. I use, from my machine default, "Central European Summer Time" and demo server uses "Central Daylight Time". But I can't see why it affects my machine and not the demo server : there is no origin here (maybe GMT, but obviously it's not the case)
The lines I added are (+ import)
} else {
fromDate = ObjectType.simpleTypeConvert(fromDate, "Timestamp", null, null, false)
}
(I intentionnaly let the line without semi-colon as it's not mandatory in Groovy)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689772 13f79535-47bb-0310-9956-ffa450edef68
Also improved the naming convention of file for easy maintenance and search purpose for
the developer/user point of view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663627 13f79535-47bb-0310-9956-ffa450edef68
Implementation of New entity, CRUD services and screen to map, for an organization, a productCategoryId/glAccountTypeId pair to a glAccountId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@599219 13f79535-47bb-0310-9956-ffa450edef68
Implemented new service (and forms) to make relatively simple the creation of text contents (simple texts) in alternate locale: there is still room for improvements here...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577814 13f79535-47bb-0310-9956-ffa450edef68
Two fields, viewAllowPermReqd and purchaseAllowPermReqd were added to ProdCatalog entity and corresponding changes to the admin form.
The "permission-service" approach to security was used for several services in CategoryServices.xml - addProductToCategory, updateProductToCategory, removeProductToCategory
and addProductToCategories.
A permission service, checkCategoryRelatedPermissionService, was added to CategoryServices.xml and the internal calls to the checkCategoryRelatedPermission method were taken
out of those services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@504818 13f79535-47bb-0310-9956-ffa450edef68
I put also some svn:ignore for shark build and lib diretories and assetmaint/build
I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.
I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68