Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4] Start and Finished featured article settings cleared when saving article at frontend #38975

Merged
merged 10 commits into from
Jan 6, 2023

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Oct 17, 2022

Pull Request for Issue #38961 .

Summary of Changes

Get featured up & down info

Testing Instructions

edit a featured article from frontend

Actual result BEFORE applying this Pull Request

featured up & down data cleaned

Expected result AFTER applying this Pull Request

no more data loss

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@WoodyF4u
Copy link

I was the person who started #38961
I have seen that it is closed.
We are asked to test it in this PR.
But is there something to test anywhere? Where can I find it?

@alikon
Copy link
Contributor Author

alikon commented Oct 19, 2022

as usual
for more info https://docs.joomla.org/Testing_Joomla!_patches/en

@WoodyF4u
Copy link

I have tested this item ✅ successfully on b77c583

I have tested the patch on a copy of a live site.
The result of the test was good.
Without a patch there was no field information for the beginning and end of the featured articles.
It works fine with the patch.
Even after saving in the frontend, the data is the same on the frontend and backend.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@WoodyF4u
Copy link

Is it possible to see this solutuion in the next Joomla 4 release?
For example in 4.2.5?

@joomdonation
Copy link
Contributor

I think you can improve the current code a a little by doing the same with the code in Article model https://github.com/joomla/joomla-cms/blob/4.2-dev/administrator/components/com_content/src/Model/ArticleModel.php#L402-L430

@Scrabble96
Copy link
Contributor

What happened to this PR? Why did it not appear in 4.2.6? More testing on the front and backend shows that:

  1. On front end - i) add start and finish dates for Featured, ii) 'Save' (the dates apparently disappear) then 'Cancel', or add the dates and then 'Save and Close', iii) check in backend: Featured dates are shown;
    However...
  2. On front end - i) add start and finish dates for Featuring, ii) 'Save' (the dates apparently disappear), iii) continue editing content, iv) Click 'Save and Close', v) check in backend: Featured dates are lost because they have been cleared earlier in the 'Save' operation.

@alikon
Copy link
Contributor Author

alikon commented Dec 14, 2022

as usual it needs 2 successfull tests and then it's up mantainers / Release leaders to decide

@joomdonation
Copy link
Contributor

I have tested this item ✅ successfully on d04129d

The PR solves the issue. Further improvement could be made to avoid repeating same code for both frontend and backend, but it could be done in separate PR.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@joomdonation
Copy link
Contributor

@Scrabble96 or @WoodyF4u If you have time, please test this PR so that we can get the issue fixed for next release.

@Scrabble96
Copy link
Contributor

I have tested the patch successfully using the Joomla! Patch Tester component on a development site online. I can't see a way to submit my test results, though.

@joomdonation
Copy link
Contributor

You can go to https://issues.joomla.org/tracker/joomla-cms/38975 , click on Test this button at the top to report test result. See the attached screenshot for more details
test

@Scrabble96
Copy link
Contributor

I have tested this item ✅ successfully on d04129d

Tested as per my comment 2022/12/29


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@joomdonation
Copy link
Contributor

RTC. Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 29, 2022
@joomdonation joomdonation added this to the Joomla! 4.2.7 milestone Dec 29, 2022
@WoodyF4u
Copy link

WoodyF4u commented Jan 3, 2023

I just tested it successfully as well.
I saw that two successful tests have already been done.
So I can't officially confirm it anymore, but I agree with this patch.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

1 similar comment
@WoodyF4u
Copy link

WoodyF4u commented Jan 3, 2023

I just tested it successfully as well.
I saw that two successful tests have already been done.
So I can't officially confirm it anymore, but I agree with this patch.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@brianteeman
Copy link
Contributor

@WoodyF4u you can still record your successful test


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@WoodyF4u
Copy link

WoodyF4u commented Jan 3, 2023

I have tested this item ✅ successfully on d04129d

My test was succesfull.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@WoodyF4u
Copy link

WoodyF4u commented Jan 3, 2023

Hi Brian,
Done.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38975.

@fancyFranci fancyFranci merged commit 1c2bb9a into joomla:4.2-dev Jan 6, 2023
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 6, 2023
@fancyFranci
Copy link
Contributor

Thanks a lot!

@alikon alikon deleted the patch-13 branch January 7, 2023 07:16
charvimehradu pushed a commit to charvimehradu/joomla-cms that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants