User tests: Successful: Unsuccessful:
Pull Request for Issue #26783 , see also #26751 (comment) .
Changes the code to produce the edit icon for frontend editing so it handles real null values for published up and down times.
This fixes the issue that on current 4.0-dev, they eye icon is shown for published articles instead of the edit icon, like it would be with unpublished or not published yet articles.
Use an installation of current 4.0-dev or latest nightly build of today.
Result: See section "Actual result" below.
Result: See section "Expected result" below.
For published articles the edit icon is shown and for unpublished, pending or expired articles the eye icon.
For published articles the same eye icon is shown as for unpublished, expired or pending articles.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Layout |
Title |
|
In pull 26751 @ infograf768 it says: Null Date is now defined by null and no more by Factory :: getDbo () -> getNullDate ()
Now in this pull it is used again ... Am I missing something or is there something I don't understand?
Or the problem is that there is no established parameter of code ?, as it still happens with the array limes () and that they should be replaced by [] but still use them in the development of Joomla 4.x ... as as many deprecated that are still written.
Thank you.
@Stuartemk We want to keep the old nulldates in addition to real nulls only where it might be necessary for 3rd party extensions. Here I am not sure if to keep it or not, that's why I've pinged wilsonge before for his opinion.
Or shall we better stay safe and keep the old nulldates like it is now in this PR?
That layout can be used by a 3rd party. Let's keep the old nulldates.
Labels |
Added:
?
|
@infograf768 Yes, that’s how it shall be (except the bad tips of course).
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Or shall we better stay safe and keep the old nulldates like it is now in this PR?
No. This layout is specific to com_content.
George confirmed in Glip that I shall keep the old nulldates, too, because this layout might be used by 3rd partries, too, and I think if not then it doesn't hurt. Naming of variables and so on look to me as if it was made for articles only, but this might be for historic reasons because frontend editing at the very first beginning was limited to articles only, if I remeber right. So all ok here.
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-10-25 20:47:57 |
Closed_By | ⇒ | wilsonge |
Thanks!
Thanks too all testers and mergers
@wilsonge Do we need to check old nulldates here for 3rd party compatibility? Is not a library, but can the layout used by 3rd party? As far as I can it is only made for articles, and those are created by core, so we don't need to check old nulldates, right? Or shall we better stay safe and keep the old nulldates like it is now in this PR?