[ 
https://issues.apache.org/jira/browse/OFBIZ-12246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17353076#comment-17353076
 ] 

ASF subversion and git services commented on OFBIZ-12246:
---------------------------------------------------------

Commit 2afba3ed154b91b43415c0243a3dca1790795a91 in ofbiz-framework's branch 
refs/heads/ofbiz-12246 from Daniel Watford
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=2afba3e ]

Fixed: Default From Date for Product Config Item Content truncated to seconds
rather than milliseconds.

(OFBIZ-12246)

There was a mismatch in timestamp resolution. Updates to Product Config
Item Contents rely on second resolution timestamps for finding records
to update. By default, millisecond resolution timestamps were created
for config item contents' From Date which caused records to not be found
during update operations.

Also made From Date a display-only field when editing a config item
content since it is a primary key and cannot be modified.


> Cannot update content of Product Config Item Content originally created 
> without a From Date
> -------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12246
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12246
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product/catalog
>    Affects Versions: Release Branch 18.12, Trunk
>            Reporter: Daniel Watford
>            Assignee: Daniel Watford
>            Priority: Major
>
> Using demo data, click Prepare Create at 
> https://localhost:8443/catalog/control/EditProductConfigItemContent?configItemId=SC00000
> Create new content but leave the From Date and To Date fields blank.
> On screen 
> https://localhost:8443/catalog/control/EditProductConfigItemContent?configItemId=SC00000
>  note that the From Date has been populated with a timestamp for the new 
> content will millisecond resolution.
> Assuming OFBIZ-12245 fix has been implemented, click on title of new content 
> to edit it. Attempts to update the content will fail since the From Date will 
> be truncated to the nearest second, meaning attempts to find the content in 
> the database will fail in service, updateSimpleTextContentForProductConfigItem
> To resolve, ensure system generated From Dates are truncated to second 
> resolution rather than millisecond resolution.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to