Commit Graph
1546 Commits
Author SHA1 Message Date
Jacques Le Roux 38e9885d3d Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115
At r1758927 I tried to fixe a bunch of closes missing, reported as warnings in Eclipse

Jacopo noticed and reported on dev ML http://markmail.org/message/b4hvzi7foftfq3j5 2 possible issues:
1) you are adding a close statement to code that already had the close statement in the "finally" block; your modification actually introduces a code pattern that is not correct (if an exception is thrown your close statement are not executed)
2) I suspect that you are closing the socket connection too early in PcChargeApi

1)The best option when closing resources (which implement AutoCloseable) is actually to use the try-with-resources statement. At least when there are no performance issues.
I have fixed the issue (only in DatabaseUtil.java) this way because
* there are not performance issues, we anyway create a Statement in both cases, we don't reuse one.
* The finally part is cleaner

I have also used the try-with-resources statement in other places where it fitted.

There is only 1 place where I was undecided: ScriptUtil.parseScript() which uses GroovyUtil.parseClass().
I put only a logError() there and returned null. 
I did not throw an IOException because else it spreads everywhere in FlexibleStringExpander.
Here introducing Optional would be better, but I have no time or that today.

2) was not a problem


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758951 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 13:18:35 +00:00
Jacques Le Roux 8bf34869da Reverts r1758927 to check issues reported by Jacopo on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758935 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 10:47:30 +00:00
Jacques Le Roux 6636d4ae01 Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115
Fixes a bunch of small leaks (closes missing, only warnings in Eclipse)
By-product: automatically sort few imports

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758927 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 10:07:31 +00:00
Pranay Pandey 8dd9964d31 [OFBIZ-7311] - Applied the patch from the ticket. Removing the unused references of the maincss.css from source code, following is done-
1) Removed 'maincss.css' entry from 'allowedPaths' param of from web.xml
Reason: Since, there is no file like 'maincss.css' exist under any includes directory. 
2) Removed the unused references of maincss.css from FTLs, code
<link rel="stylesheet" href="${StringUtil.wrapString(baseUrl!)}/images/maincss.css" type="text/css"/> 
has been removed.
Reason: This is an interesting thing, these FTLs were using the maincss.css located under the images directory.
When I look the history of these files, following were my findings,
The 'maincss.css' file under the 'images' directory exist in release4.0 
http://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/images/webapp/images/
after this release, this files no longer exist there.
3) Also, I have updated one file 'InventoryNoticeEmail.ftl' and used the basic HTML code to style, instead of using style defined in 'maincss.css' which were exist in release-4.0
4) Updated some references from 'maincss.css' to style.css in comments.
5) Also removed the entry of including '/images/maincss.css' and '/images/mainrtl.css' in SimpleDecorator
Since, these files no longer exist after release-4.0.

Thanks Wai for reviewing the work and thanks Swapnil M Mane for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758389 13f79535-47bb-0310-9956-ffa450edef68
2016-08-30 13:37:27 +00:00
Ashish Vijaywargiya 98af5e29e5 Applied patch from jira issue - OFBIZ-7872 - Clean up commented out code in Free Marker Template for Content.
Thanks Aman for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758037 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 14:02:30 +00:00
Jacques Le Roux 607f817c8a Forgot this one at r1755306 for OFBIZ-7776 because I hesitated removing the README
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755401 13f79535-47bb-0310-9956-ffa450edef68
2016-08-06 14:11:35 +00:00
Jacques Le Roux ef7996c983 Fixes "Remove warnings regarding missing component lib folders" - https://issues.apache.org/jira/browse/OFBIZ-7776 - by cleaning/clearing the references to non existent/empty dirs.
Notes: 
* Also removes empty framework/base/lib/scripting and useless applications\content\lib\uno\README (miss doc in wiki)
* When jpim-0.1.jar will be (hopefully) replaced we can drop lib ref in framework/base/ofbiz-component.xml
* I wonder if we should let the geronimo component alone with only 2 classes, could we not put that in entity or entityext?
 
    



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755306 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 12:27:21 +00:00
Mridul Pathak c9186c1413 [OFBIZ-7901] Remove system generated fields from data files of Content component. Thanks Suraj Khurana for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755297 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 11:55:42 +00:00
Mridul Pathak 7aa33615b2 [OFBIZ-7529] Missed this change in r1754644.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754645 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 09:46:57 +00:00
Mridul Pathak 45abf6d85e [OFBIZ-7529] Part 4 (final) of "Delete stale java files from applications and framework". Deleted following file/directories and their references. Had to do some adjustments in ComDocServices.java as Open Office specific "convertDocumentByteBuffer" service was being referenced there.
applications/content/src/main/java/org/apache/ofbiz/content/openoffice
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeByteArrayInputStream.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeByteArrayOutputStream.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeServices.java
applications/content/src/main/java/org/apache/ofbiz/content/openoffice/OpenOfficeWorker.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754644 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 09:42:41 +00:00
Mridul Pathak 5577e005d7 [OFBIZ-7529] Part 1 of "Delete stale java files from applications and framework". Deleted following files/directories and references -
applications/content/src/main/java/org/ofbiz/content/report
applications/content/src/main/java/org/ofbiz/content/report/JREntityListIteratorDataSource.java
applications/content/src/main/java/org/ofbiz/content/report/JRMapCollectionDataSource.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754634 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 06:04:09 +00:00
Nicolas Malin 96ed02fae4 Create demo PartyStatus data for existing parties for applications component, thanks to Suraj Khurana for the submission through OFBIZ-7673
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753797 13f79535-47bb-0310-9956-ffa450edef68
2016-07-22 14:22:32 +00:00
Ashish Vijaywargiya 40bd2bb3e3 Applied patch from jira issue - OFBIZ-7838 - Clean up commented out code in Java source for Content.
Thanks so much Harsh for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752965 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 14:10:10 +00:00
Ashish Vijaywargiya 903b57d898 Applied patch from jira issue - OFBIZ-7612 - Party content in party component is not getting updated.
Thanks Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752952 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 13:04:34 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Deepak Dixit 1db94eeaee (OFBIZ-1319) Replace selectall.js occurance with OfbizUtil.js.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752900 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:46:24 +00:00
Taher A. Alkhateeb b37ef2d280 Migrate ALL java files from /src to /src/main/java - OFBIZ-7790
This is the first of two steps in the above mentioned JIRA. This
first step changes the java source directory for every component
from /src to /src/main/java. The next step will be adding unit
tests to every component in /src/test/java

Thank you to Deepak Dixit for tips on how to use the SVN commands
to make the appropriate file moving.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752838 13f79535-47bb-0310-9956-ffa450edef68
2016-07-15 14:17:14 +00:00
Gil Portenseigne 3130f0eb95 OFBIZ-7763 :
Remove all bsh libraries and bsh remaining fonctionnalities.
Bsh interpreter is replaced by GroovyShell evaluation.

To avoid groovyShell undefined var exception, the evaluated expression is analysed, detecting variables used and setting its to null if undefined in context.
Today only alphabetic variable with '_' are detected (i.e. my_variable==null).
Add in example a test replacement of &quot; syntax to simple quote.
Remove all found bsh references

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752231 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 23:04:54 +00:00
Taher A. Alkhateeb 4d2b415a91 Another major patch for OFBIZ-7534 replacing Ant with Gradle
This is the first patch that takes OFBiz to the point of no return
in terms of switching from Ant to Gradle build system. Specifically
this patch applies the following items:

- Delete all old Ant and Maven build scripts
- Delete 169 Jar libraries and replace them with remote ones in the
  gradle build script
- update the gradle build scripts for the dependencies and other minor
  changes needed for the script work correctly

All tests pass with the command ./gradlew cleanAll loadDefault testIntegration

Again, thank you for everyone who contributed valueble time and effort in this
process.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752033 13f79535-47bb-0310-9956-ffa450edef68
2016-07-09 18:10:19 +00:00
Ashish Vijaywargiya 86ec0749b9 Applied patch from jira issue - OFBIZ-6214 - Have overview of questions in EditSurveyQuestions.ftl paginate properly.
Thanks Pierre for creating the issue and thanks Yashwant for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751483 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 14:07:47 +00:00
Divesh Dutta dd1e7ee3d3 [OFBIZ-7578] Content component: Checkbox and Radio buttons should get selected on clicking upon their labels. Thanks Mohammad Kathawala for your patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751341 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 16:46:51 +00:00
Pranay Pandey 1ae1630680 [OFBIZ-7676] Fixed UI Labels for Forum group name on forum group roles and purposes screens.
Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751042 13f79535-47bb-0310-9956-ffa450edef68
2016-07-02 08:57:29 +00:00
Jacques Le Roux 6e54fba04e A last slightly modified patch from James Yong for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
I have uploaded a patch for the simple methods schema.
In general, the top level attributes are converted to simpleType, and attributeGroups to complexType.

Changed the following attribute name
1. ‘field’ to ‘fieldType’
2. ‘level’ to ‘levelType'

Denormalize the following attributeGroups
1. attlist.compare
2. attlist.compare-field

Left attributeGroup ‘typeDefaultString’ unchanged, cos it doesn’t matter. Not in use, it seem.

jleroux: we also fixed an issue with 
<xs:element name="field" type="fieldType"/> 
to 
<xs:element ref="field"/>
In the patch 

And I found a small issue (not minilang related) in ExampleCompoundWidgets.xml
-            <sm:log message="CompoundWidgetsFunc runs" sm:level="info"/>
+            <sm:log message="CompoundWidgetsFunc runs" level="info"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750647 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 14:06:29 +00:00
Pranay Pandey 97b5e976dc [OFBIZ-7554] Fixed issues with Forum Screens Delete and Update buttons.
Issues fixed are:
- Forum list on Forum Group View
-- Delete button is not showing up and working.
-- Update button is not working.
- Forum Group Roles
-- Delete button is not showing up and working.
- Messages for Forum View
-- Delete button is not showing up and working.
-- Update button is not working.

Thanks Mohammed Rehan Khan for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750624 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 12:34:35 +00:00
Pranay Pandey 6f11c7baa7 No functional changes. Corrected formatting for better readability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750610 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 08:36:48 +00:00
Arun Patidar 5851b3d8a1 Applied patch from jira issue - OFBIZ-7391 - Enforce noninstantiability to OpenOfficeWorker Class. Thanks Rishi Solanki and Rohit Koushal for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750330 13f79535-47bb-0310-9956-ffa450edef68
2016-06-27 13:18:59 +00:00
Arun Patidar c8786c6419 Applied patch from jira issue - OFBIZ-7388 - Enforce noninstantiability to LayoutWorker Class. Thanks Rishi Solanki and Rahul Singh Kushwah for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750329 13f79535-47bb-0310-9956-ffa450edef68
2016-06-27 13:12:12 +00:00
Ashish Vijaywargiya 2e30592be6 Applied patch from jira issue OFBIZ-7565 - Remove HtmlFormWrapper dependencies from Survey Question Screen.
Thanks Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750306 13f79535-47bb-0310-9956-ffa450edef68
2016-06-27 08:14:21 +00:00
Jacques Le Roux 642f42886e A temporary workaround for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
Reverts the simple method to use the original schema without namespace. "Duplicates" simple-methods.xsd in simple-methods-ns.xsd as we did, to get the simple-method namespace for compound-widgets.

For myself: when we will do the 3rd more elegant option (no schema duplication), have been changed also:
minilang-catalog.xml
compound-widgets.xsd


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749938 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 16:40:22 +00:00
Arun Patidar 52c0eec697 Applied patch from jira issue - OFBIZ-7383 - Enforce noninstantiability to ContentManagementWorker Class. Thanks Rishi Solanki and Anurag Chandak for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749896 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 14:20:33 +00:00
Arun Patidar a91b9edae9 Applied patch from ticket - OFBIZ-7339 - Replace EntityUtilProperties getPropertyValue method with correct method calls. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749882 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 13:10:51 +00:00
Ashish Vijaywargiya 6ba678fbd0 Applied patch from jira issue - OFBIZ-7368 - Mime Type Id field on Content Lookup displayed Html Encoded String for special character.
Thank Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749846 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 06:48:44 +00:00
Ashish Vijaywargiya 2672c0d915 Applied patch from jira issue OFBIZ-7527 - Questions from category should not come to apply on survey when creating/editing any question.
Thanks Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749845 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 06:45:28 +00:00
Jacques Le Roux c8ba932772 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Pranay Pandey e314e8a5ee [OFBIZ-7519] Updated optionality to required for attributes in entity auto services where pk fields were mentioned optional. It helps service engine to validate IN attributes and return error for missing ones.
Cases considered for this update are:
 1. One PK: Takes new sequence if PK not passed.
 2. Two PK: Both PK should be mandatory except the case of secondary primary key (like agreementItemSeqId) where next subsequence is generated.
 3. More than two PK's, all PK's should be mandatory except the fromDate.
 Thanks Amardeep Singh Jhajj for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749532 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 14:37:30 +00:00
Jacques Le Roux 89212904bd Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux 4931db1ed9 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Divesh Dutta 219db8600d [OFBIZ-7374] Added capability to expire or remove the content for a party. Thanks Ankush Upadhyay for your patch and thanks Swapnil Shah for suggeting this improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749091 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 20:29:51 +00:00
Pranay Pandey 123b9fb02a [OFBIZ-1191] Applied patch from the ticket. Fixed creation of a new forum in Content Manager. Content Association wasn't being created because of missing contentIdTo.
Steps to reproduce:
1) Go to content component
2) Click on Forum tab
3) Select WebStoreForum : https://localhost:8443/content/control/findForums?forumGroupId=WebStoreFORUM
4) Add new forum for this Forum Group.

Result: Created forum is not getting displayed.

Thanks late Adrian Crum for reporting the issue and Mohammed Rehan Khan for providing the patch.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748907 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 05:29:06 +00:00
Jacques Le Roux 4e1d52c9a5 A modified patch from Amardeep Singh Jhajj for "Error on deleting Content Type Attribute" https://issues.apache.org/jira/browse/OFBIZ-7369
Please find attached screenshot.

Steps to regenerate:

1. Go to https://localhost:8443/content/control/EditContentTypeAttr
2. Add ContentTypeAttribute.
3. Now try to delete it from list, error occurs.

The reason of error was missing default-entity-name in service entity-auto.

jleroux: while trying I noticed that if you did not fill the attribute name you got a non readable error message, I forced the attribute name to optional=false

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748854 13f79535-47bb-0310-9956-ffa450edef68
2016-06-17 13:16:39 +00:00
Pranay Pandey 2287cc71f4 [OFBIZ-7132] Applied slightly modified patch from the ticket. Added WebSiteAlias usage example to cmssite data.
Thanks Chandan Khandelwal for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748800 13f79535-47bb-0310-9956-ffa450edef68
2016-06-17 06:49:30 +00:00
Jacques Le Roux 1326c12156 A patch from Ankit Joshi for "http://docs.ofbiz.org/ is wrongly used in content" https://issues.apache.org/jira/browse/OFBIZ-7001
There are 31 occurrences and most use shortcuts. They should be converted to link to the current wiki, of course the previous shortcuts are no longer valid.
We need to replace them by hand, hence 1st find what the old shortcuts were, and then replace them with new shortcuts, or even better real links. We got bitten once by shortcuts, it's enough...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748260 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 15:23:37 +00:00
Pranay Pandey 31338f4673 [OFBIZ-7326] Made SequenceNum field editable on Edit Content Purpose form.
Thanks Amardeep Singh Jhajj for reporting the issue and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748206 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 12:55:37 +00:00
Deepak Dixit 25b56a03ea (OFBIZ-7223) Relocate .groovy files in the content component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747756 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 17:21:10 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Jacques Le Roux 3680565ec0 A patch from Nameet Jain for "CMS throws error on clicking Find button" https://issues.apache.org/jira/browse/OFBIZ-7104
Steps to regenerate
1. Open the content app
2.  Click the CMS menu or use the link 
       https://localhost:8443/content/control/CMSContentFind
3. Click on Find submenu or use link
      https://localhost:8443/content/control/AdminSearch

The error is due to missing content index. We can improve the error message to guide user to index the content first. ContentErrorUiLabels.xml

jleroux: I just moved the label to be sorted right and added a French one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747349 13f79535-47bb-0310-9956-ffa450edef68
2016-06-08 05:10:30 +00:00
Pranay Pandey 90850d787f [OFBIZ-7154] UI improvement, made question field read-only as not being edited with SurveyQuestionAppl and corrected button labels for Survey Question Create/Update form.
Thanks Swapnil M Mane for reporting the issue, thanks Vaibhav Jain for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746779 13f79535-47bb-0310-9956-ffa450edef68
2016-06-04 05:48:55 +00:00
Jacques Le Roux ef4c54a577 A patch from Ingo Wolfmayr for "Problem assigning contentassoc with different content assoc types" https://issues.apache.org/jira/browse/OFBIZ-7159
Go to: Content --> Content -> "WebStoreCONTENT" --> Association

Add an association:

ContentIdTo: CNTGIZMOS
ContentAssocTypeId: Alternate Locale
--> Create

add another via "create new association"
ContentIdTo: CNTGIZMOS
ContentAssocTypeId: Alternate Role
--> Create

The 2nd association is create with the ContentAssocTypeId of the first one created. You have to logout and login to clear that.

Cause: the selected ContentAssocTypeId does not change by selecting another value.
Solved it by removing to-scope="user"
I did look for reasons but could not find one
+ checked if everything is working
    create association works (first time)
    update works
    create further association works
I guess it is done to set the default value from the last selection, but it breaks functionality as you wont be able to change it.

jleroux: this was very old code (pre Apache era) which maybe worked before but does not longer. Anyway the old behaviour (if it worked) was very minor, so I see no problems removing it to have something working




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746755 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 20:36:25 +00:00
Deepak Dixit 09ca38b7f6 (OFBIZ-7164) Fix typo in freemarker else tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746691 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 08:59:56 +00:00
Pranay Pandey 7f8d1326cf [OFBIZ-7119] Now cmssite will start working again with mapkey in the url in trunk. The code block was commented while working on OFBIZ-4502.
As of now no WebSitePathAliases have been setup for any of the pages in cmssite demo data and that's one of the additional option to serve pages through CMS. So keeping it open for serving pages through mapkey shouldn't be blocked.  Data samples for usage of WebSitePathAlias can be added to demonstrate the ability CMS offers. 

Thanks Deepak and Jacques for your comments and help.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1745569 13f79535-47bb-0310-9956-ffa450edef68
2016-05-26 06:56:39 +00:00