[ECOMMERCE-422] Get freeMarker template error when editing component with no connection Created: 21/Jun/21  Updated: 27/Jun/21  Resolved: 24/Jun/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3

Type: Bug Priority: Neutral
Reporter: Yen Lac Tue Assignee: Thuy To
Resolution: Fixed Votes: 0
Labels: VN-Maintenance
Remaining Estimate: Not Specified
Time Spent: 1.75d
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-06-21 at 8.48.07 AM.png    
Issue Links:
Relates
relates to ECOMMERCE-423 TEST ONLY. Should handle edit compone... Closed
relates to ECOMMERCE-404 New Chooser templates Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: New Product Chooser 1.3
Sprint: Content Mngmt 6
Story Points: 3

 Description   

Steps to reproduce

  1. Create a component with product detail
  2. Disable all connections
  3. Open ecom page
  4. Edit product detail component

.. Logs, screenshots, gifs...

Expected results

Should not throw error

Actual results

System  throw error:

The following has evaluated to null or missing: ecomfn.getProductById(productChooser.connector, productChooser.connection, productChooser.productId) [in template "ecommerce-templating/templates/components/new-product-detail.ftl" at line 3, column 24]

Workaround

Development notes


Generated at Mon Feb 12 01:43:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.