You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are totally right. I didn't find a proper way to do this formatting across the different places this other type is used.
Honestly I added the attribute type but it didn't get enough attention during testing (I won't need this type myself). I did realise that I will need to find a way to map internal date format to either mysql DATE_FORMAT function to have the date output in the result set in a correct manner (which would be the quickest).
No not yet, I'll need to find some time to look into it. We could however disable DATE attributes and move it to the next release to unblock. What you think?
I think I'll try to map the configured date and time formatter to DATE_FORMAT mysql. MIght be the cleanest so the dates will be formatted directly in the resultset.
@jekkos, what ended up being the fix for getting the Item table to display the datetime attributes correctly. I'm experiencing the same behavior with the DECIMAL attribute type. On first entry of a datetime or decimal it updates the database but does not display the datetime or decimal in the items table. If I update it again or update a different datetime or decimal it will populate that one, but only after updating each one twice does it display in the table.
@objecttothis I have tested my latest PR with text and date attributes, seems to be ok. Haven't verified with Decimal yet but I think it will need to be added in the search query explicitly (like I did for the other types).
Activity
jekkos commentedon Nov 15, 2018
You are totally right. I didn't find a proper way to do this formatting across the different places this other type is used.
Honestly I added the attribute type but it didn't get enough attention during testing (I won't need this type myself). I did realise that I will need to find a way to map internal date format to either mysql DATE_FORMAT function to have the date output in the result set in a correct manner (which would be the quickest).
daN4cat commentedon Dec 23, 2018
@jekkos is this fixed?
jekkos commentedon Dec 24, 2018
No not yet, I'll need to find some time to look into it. We could however disable DATE attributes and move it to the next release to unblock. What you think?
jekkos commentedon Jan 17, 2019
I think I'll try to map the configured date and time formatter to DATE_FORMAT mysql. MIght be the cleanest so the dates will be formatted directly in the resultset.
jekkos commentedon Jan 21, 2019
Will try to wrap something up this week
jekkos commentedon Jan 24, 2019
Fix is almost ready, just need to verify
Fix datetime attribute formatting (#2232)
Fix datetime attribute formatting (#2232)
Fix loading attribute values in item search (#2232)
daN4cat commentedon Feb 18, 2019
Status?
objecttothis commentedon Mar 1, 2019
@jekkos, what ended up being the fix for getting the Item table to display the datetime attributes correctly. I'm experiencing the same behavior with the DECIMAL attribute type. On first entry of a datetime or decimal it updates the database but does not display the datetime or decimal in the items table. If I update it again or update a different datetime or decimal it will populate that one, but only after updating each one twice does it display in the table.
Fix datetime attribute formatting (#2232)
Fix loading attribute values in item search (#2232)
Fix datetime attribute formatting (#2232)
Fix loading attribute values in item search (#2232)
jekkos commentedon Jun 4, 2019
@objecttothis I have tested my latest PR with text and date attributes, seems to be ok. Haven't verified with Decimal yet but I think it will need to be added in the search query explicitly (like I did for the other types).
daN4cat commentedon Jun 15, 2019
Code merged. I close this and if any issue reopen it.
jekkos commentedon Jun 16, 2019
Ok decimals don't show up in search results, this needs fixing.
daN4cat commentedon Jun 16, 2019
Decimals are a different matter.
I need to submit some minor change, you can take from there.
daN4cat commentedon Jun 16, 2019
I committed to master the few changes I made here and there.
I temporary fixed the cash_refund issue discussed in another thread.