[4.0] Fix featured up and down null date checks in content table#26829
Conversation
|
This is still an issue.
|
|
Set to |
|
@Quy Ah it has been moved once from the |
|
Or maybe saving to the |
|
@Quy You can test with my latest commit but I am not sure if that is right. I think the Content.php is only for the |
|
I've pinged George with a comment here, hope we will reply: #25979 (comment) |
|
Notices are gone, however, featured dates don't swap when finish date is less than start date. |
I think this is the wrong fix then. |
|
@Quy It has been moved from the content table to the content frontpage table during development of that and there has been something forgotten for saving, that's what I think. Or can you check if changes on these dates are saved so you later see them when going back to the form from somewhere else? |
|
Are you suggesting that lines 277 to 284 should not be there at all? |
|
I do see them when editing. |
|
Yes, that's what I think. You can save changes in them? Gotta go now, brb later. |
|
Yes changes are saved. |
|
And if you remove the code for those columns completely? Changed still saved? |
|
Am away from desk now, can’t test myself. |
|
Yes. |
|
I think I've seen in changes of that PR that changes on these 2 new columns are saved by event trigger. So I think they should be removed here. @wilsonge If you find some time, please check and comment. |
|
@Quy And if we remove the complete function |
|
Hmm, I see, the function is necessary to fill times in the edit form. |
|
@Quy Now it should be ok. Please test. |
|
@eshiol Could you check and review and maybe test, too? |
|
The code for loading data for display should be moved to article model's |
|
@SharkyKZ I see. Will do that later. |
Will that work for frontend editing, too? |
|
No, that will have to be done in the frontend model as well. Although I might be completely wrong with this suggestion. To me it seems that table class shouldn't load properties from other tables. But then |
|
@SharkyKZ I get an error |
|
I have tested this item ✅ successfully on f8557aa This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26829. |
|
@infograf768 Could you test this here, too? |
|
I have tested this item ✅ successfully on f8557aa This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26829. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26829. |
|
tks |
@brianteeman Was your test maybe for #26825 and not this one here? Just to be sure all is right. |
|
my test was for here |
Pull Request for Issue #26828 .
Summary of Changes
Remove the check for
featured_upandfeatured_downtimes in the content table class.The
featured_upandfeatured_downcolumns have been added to database table#__content_frontpagewith PR #25979 , thanks @eshiol for that new functionality and your patience.During development, the new database columns first were added to table
#__contentand later have been mode to table#__content_frontpage.This PR here removes a remainder of that change which causes the issue described in #26828 .
Thanks @Quy for having discovered the issue.
Testing Instructions
E_ALLin your php.ini and switch on error logging to file or display of errors.Expected result
No errors or warnings or notices.
Actual result
Documentation Changes Required
None.