-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 6.1.20 EE GA2, 6.1.X EE
-
Fix Version/s: None
-
Component/s: Util, Util > Shopping
-
Labels:None
-
Fix Priority:3
Steps to reproduce:
1. Add a page (Shopping Page)
2. Add shopping portlet to Shopping Page
3. Add Category
- Name: Category Name
- Description: Category Description
- Save
4. Add Item
- SKU: Item SKU
- Name: Item Name
- Description: Item Description
- Properties: Item Properties
- Stock Quantity: 1
- Save
5. Actions > Edit Item > Add Field
- Name: Field Name
- Values: Field Values
- Description: Field Description
- Edit Stock Quantity: 1
- Update
- Save
6. Actions > Edit Item
- Min Qty: 1
- Max Qty: 10
- Price: 10.00
- Discount: 10.0
- Shipping: 1.00
- Save
7. Click Item
Expected result:
User does not get a console error when clicking the item to "Add to Shopping Cart". User is able to "Add to Shopping Cart".
Actual result:
User gets a console error when clicking the item to "Add to Shopping Cart". User is unable to "Add to Shopping Cart".
[exec] 19:39:46,356 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 20: 47: missing ) after condition [exec] 19:39:46,356 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 26: 129: missing ; before statement [exec] 19:39:46,357 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 31: 2: syntax error [exec] 19:39:46,357 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 33: 13: syntax error [exec] 19:39:46,358 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 36: 17: missing ; before statement [exec] 19:39:46,358 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 37: 16: syntax error [exec] 19:39:46,358 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 38: 20: syntax error [exec] 19:39:46,358 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 39: 17: syntax error [exec] 19:39:46,359 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 40: 18: syntax error [exec] 19:39:46,359 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 42: 5: syntax error [exec] 19:39:46,359 ERROR [http-bio-8080-exec-1][MinifierUtil:101] 1: 0: Compilation produced 10 syntax errors. [exec] 19:39:46,360 ERROR [http-bio-8080-exec-1][MinifierUtil:79] JavaScript Minifier failed for [exec] [exec] // <![CDATA[ [exec] [exec] Liferay.Portlet.onLoad( [exec] { [exec] canEditTitle: true, [exec] columnPos: 0, [exec] isStatic: 'end', [exec] namespacedId: 'p_p_id_103_', [exec] portletId: '103', [exec] refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10429\x26p_p_id\x3d103\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3d\x26p_p_col_pos\x3d0\x26p_p_col_count\x3d0\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fshopping-page\x253Fp_p_id\x253D34\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dnormal\x2526p_p_mode\x253Dview\x2526p_p_col_id\x253Dcolumn-1\x2526p_p_col_count\x253D1\x2526_34_struts_action\x253D\x25252Fshopping\x25252Fview_item\x2526_34_redirect\x253Dhttp\x25253A\x25252F\x25252Flocalhost\x25253A8080\x25252Fweb\x25252Fguest\x25252Fshopping-page\x25253Fp_p_id\x25253D34\x252526p_p_lifecycle\x25253D0\x252526p_p_state\x25253Dnormal\x252526p_p_mode\x25253Dview\x252526p_p_col_id\x25253Dcolumn-1\x252526p_p_col_count\x25253D1\x252526_34_p_v_g_id\x25253D10180\x252526_34_cmd\x25253Dadd\x252526_34_dataType\x25253Djson\x252526_34_currentURL\x25253D\x2525252Fweb\x2525252Fguest\x2525252Fshopping-page\x252526_34_doAsUserId\x25253D\x2526_34_itemId\x253D10440' [exec] } [exec] ); [exec] [exec] function _34_addToCart() { [exec] document._34_fm._34_fields.value = ""; [exec] [exec] [exec] [exec] if (document._34_fm._34_fieldNameField Name.value == "") { [exec] alert("\u0050\u006c\u0065\u0061\u0073\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0020\u0061\u006c\u006c\u0020\u006f\u0070\u0074\u0069\u006f\u006e\u0073\u002e"); [exec] [exec] return; [exec] } [exec] [exec] document._34_fm._34_fields.value = document._34_fm._34_fields.value + 'Field Name=' + document._34_fm._34_fieldNameField Name.value + '&'; [exec] [exec] [exec] [exec] submitForm(document._34_fm); [exec] } [exec] [exec] Liferay.Portlet.onLoad( [exec] { [exec] canEditTitle: true, [exec] columnPos: 0, [exec] isStatic: 'no', [exec] namespacedId: 'p_p_id_34_', [exec] portletId: '34', [exec] refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10429\x26p_p_id\x3d34\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dcolumn-1\x26p_p_col_pos\x3d0\x26p_p_col_count\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fshopping-page\x253Fp_p_id\x253D34\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dnormal\x2526p_p_mode\x253Dview\x2526p_p_col_id\x253Dcolumn-1\x2526p_p_col_count\x253D1\x2526_34_struts_action\x253D\x25252Fshopping\x25252Fview_item\x2526_34_redirect\x253Dhttp\x25253A\x25252F\x25252Flocalhost\x25253A8080\x25252Fweb\x25252Fguest\x25252Fshopping-page\x25253Fp_p_id\x25253D34\x252526p_p_lifecycle\x25253D0\x252526p_p_state\x25253Dnormal\x252526p_p_mode\x25253Dview\x252526p_p_col_id\x25253Dcolumn-1\x252526p_p_col_count\x25253D1\x252526_34_p_v_g_id\x25253D10180\x252526_34_cmd\x25253Dadd\x252526_34_dataType\x25253Djson\x252526_34_currentURL\x25253D\x2525252Fweb\x2525252Fguest\x2525252Fshopping-page\x252526_34_doAsUserId\x25253D\x2526_34_itemId\x253D10440\x26_34_redirect\x3dhttp\x253A\x252F\x252Flocalhost\x253A8080\x252Fweb\x252Fguest\x252Fshopping-page\x253Fp_p_id\x253D34\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dnormal\x2526p_p_mode\x253Dview\x2526p_p_col_id\x253Dcolumn-1\x2526p_p_col_count\x253D1\x2526_34_p_v_g_id\x253D10180\x2526_34_cmd\x253Dadd\x2526_34_dataType\x253Djson\x2526_34_currentURL\x253D\x25252Fweb\x25252Fguest\x25252Fshopping-page\x2526_34_doAsUserId\x253D\x26_34_itemId\x3d10440\x26_34_struts_action\x3d\x252Fshopping\x252Fview_item' [exec] } [exec] ); [exec] [exec] Liferay.Portlet.onLoad( [exec] { [exec] canEditTitle: true, [exec] columnPos: 0, [exec] isStatic: 'end', [exec] namespacedId: 'p_p_id_145_', [exec] portletId: '145', [exec] refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10429\x26p_p_id\x3d145\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3d\x26p_p_col_pos\x3d0\x26p_p_col_count\x3d0\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fshopping-page\x253Fp_p_id\x253D34\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dnormal\x2526p_p_mode\x253Dview\x2526p_p_col_id\x253Dcolumn-1\x2526p_p_col_count\x253D1\x2526_34_struts_action\x253D\x25252Fshopping\x25252Fview_item\x2526_34_redirect\x253Dhttp\x25253A\x25252F\x25252Flocalhost\x25253A8080\x25252Fweb\x25252Fguest\x25252Fshopping-page\x25253Fp_p_id\x25253D34\x252526p_p_lifecycle\x25253D0\x252526p_p_state\x25253Dnormal\x252526p_p_mode\x25253Dview\x252526p_p_col_id\x25253Dcolumn-1\x252526p_p_col_count\x25253D1\x252526_34_p_v_g_id\x25253D10180\x252526_34_cmd\x25253Dadd\x252526_34_dataType\x25253Djson\x252526_34_currentURL\x25253D\x2525252Fweb\x2525252Fguest\x2525252Fshopping-page\x252526_34_doAsUserId\x25253D\x2526_34_itemId\x253D10440' [exec] } [exec] ); [exec] [exec] Liferay.provide( [exec] Liferay.Portlet, [exec] 'refreshLayout', [exec] function(portletBound) { [exec] if (!portletBound.isStatic) { [exec] Liferay.Layout.refresh(portletBound); [exec] } [exec] }, [exec] ['liferay-layout'] [exec] ); [exec] [exec] Liferay.Data.layoutConfig = { [exec] container: '#main-content', [exec] [exec] [exec] [exec] dropNodes: '.portlet-column', [exec] handles: ['.portlet-title', '.portlet-title-default'], [exec] [exec] [exec] [exec] [exec] disabledDropContainerClass: 'portlet-dropzone-disabled', [exec] dragNodes: '.portlet-boundary:not(.portlet-static)', [exec] dropContainer: '.portlet-dropzone', [exec] emptyColumnClass: 'empty', [exec] invalid: '.portlet-static', [exec] nestedPortletId: '_118_INSTANCE', [exec] portletBoundary: '.portlet-boundary' [exec] }; [exec] AUI().use('aui-base', 'liferay-form', 'liferay-layout', 'liferay-menu', 'liferay-navigation', 'liferay-notice', 'liferay-poller', function(A) {(function() { [exec] Liferay.Form.register( [exec] { [exec] id: '_34_fm' [exec] [exec] [exec] , fieldRules: [ [exec] [exec] [exec] [exec] ] [exec] [exec] [exec] [exec] } [exec] ); [exec] })();(function() {Liferay.Menu.register('_34_kldx_menu');})();(function() { [exec] Liferay.Util.addInputType(); [exec] [exec] Liferay.Portlet.ready( [exec] function(portletId, node) { [exec] Liferay.Util.addInputType(node); [exec] } [exec] ); [exec] })();(function() { [exec] [exec] })();(function() { [exec] Liferay.once( [exec] 'initNavigation', [exec] function() { [exec] new Liferay.Navigation( [exec] { [exec] hasAddLayoutPermission: true, [exec] layoutIds: [ [exec] [exec] [exec] [exec] { [exec] deletable: true, [exec] id: 1, [exec] updateable: true [exec] }, [exec] [exec] [exec] [exec] { [exec] deletable: true, [exec] id: 2, [exec] updateable: true [exec] }, [exec] [exec] [exec] [exec] ], [exec] [exec] [exec] [exec] navBlock: navBlock [exec] } [exec] ); [exec] } [exec] ); [exec] [exec] var navBlock = A.one('#navigation'); [exec] [exec] if (navBlock) { [exec] navBlock.once( [exec] 'mousemove', [exec] function() { [exec] Liferay.fire('initNavigation'); [exec] } [exec] ); [exec] } [exec] })();(function() { [exec] new Liferay.Menu(); [exec] [exec] var liferayNotices = Liferay.Data.notices; [exec] [exec] for (var i = 1; i < liferayNotices.length; i++) { [exec] new Liferay.Notice(liferayNotices[i]); [exec] } [exec] [exec] [exec] Liferay.Poller.init( [exec] { [exec] encryptedUserId: 'tHfzyDDItMs=', [exec] supportsComet: false [exec] } [exec] ); [exec] [exec] })();}); [exec] // ]]> [exec]