Based on a recent dev mailing list discussion, I added a page to the Example component that demonstrates some basic layout concepts. The idea is to display the page, then look at the screen widget definition and the HTML markup to see how the page is constructed.
The page can also be used for visual theme development - because most of the common UI elements are all on one page.
This could be improved - it needs a multi-column layout example, a tree widget example, and a form widget field group example.
Internationalization note: This commit contains new UI labels.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059429 13f79535-47bb-0310-9956-ffa450edef68
The updateRequirement simple method in applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml
creates a variable called savedValue that is never used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059302 13f79535-47bb-0310-9956-ffa450edef68
If I cancel an order item from ecommerce. I get, the below error displayed on the page.
The Following Errors Occurred:
Unable to cancel order line : WSCO11640 / 00001 / null
There have been a discussion about it in this thread http://markmail.org/message/dfkudyvbksvls333
How it works: you can cancel an order item if you create it or have the ORDERMGR_CREATE or ORDERMGR_UPDATE permissions (I added the later to Sascha's patch, else the order manager would be annoyed ;o)
I think this makes sense, because AFAIK there are no other UIs than
https://demo-trunk.ofbiz.apache.org/ordermgr/control/editOrderItems?orderId=...
and
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/orderstatus?orderId=...
to cancel an order item. So nobody should be able to bypass his/her permissions... Of course, let me know if you think I could have missed something, thanks
Note also that we had to remove fullPath="true" in <@ofbizUrl>cancelOrderItem</@ofbizUrl> (orderitems.ftl), to avoid InsecureFormPostToSecureRequest error. I don't think it raises any security issues though, has it's done from a javascript call with hidden orderItemSeqId parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059180 13f79535-47bb-0310-9956-ffa450edef68
I found an error in applications/order/webapp/ordermgr/images/js/geoAutoCompleter.js on getAssociatedStateList function.
jQuery.ajax({
url: requestToSend,
sync: false,
type: "POST",
data: {countryGeoId: countryGeoId},
success: function(data) {
sync:false should be replaced by async:true.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058700 13f79535-47bb-0310-9956-ffa450edef68
The reason for the bug was that the request was called with an additional orderId get parameter. But the orderId was still in the parameter map so the request handler created with these two orderIds a orderId List. These list couldn't be interpreted from the groovy script(because a string was expected). The result was the error message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058488 13f79535-47bb-0310-9956-ffa450edef68
Fixes some bugs in CMS introduced in svn r1036195 when migrating from dojo to jQuery:
* reverted accidental logic change in callDocument() that broke the "new ..." context menu items
* making elRTE "save" toolbar button work: same behavior as the regular "Save" button
* using regular form submit instead of ajax for new content for now
o ajaxSubmitForm() can't handle new content, it won't reload the form because it doesn't know the new contentId
+ some controller changes would probably be necessary to make that work (return new contentId as JSON)
o nav tree is not updated with ajax submit currently
* now always creating editor if corresponsing html element exists
o editor was not initialized when WebSiteCMSContent screen was loaded by non-ajax call
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058197 13f79535-47bb-0310-9956-ffa450edef68
* Go to https://demo-trunk.ofbiz.apache.org/content/control/WebSiteCms?webSiteId=WebStore
* Select some content, e.g. "Store Policies"
* Try to click the "Path Alias" or "Meta Tags" links at the top. They cause a JavaScript error: "destroyEditor is not defined"
This patch removes calls to non-existing destroyEditor() javascript function, fixes the url to the path alias, and adds the missing screenlets to the path alias and meta tags screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057775 13f79535-47bb-0310-9956-ffa450edef68