Skip to content

Conversation

@farzadtaheri
Copy link
Contributor

@farzadtaheri farzadtaheri commented Sep 4, 2017

Problem: com_fields category fields change event causing problem in Persian fa-IR.
with this change, all calendars fields with localized data type (like Jalali) are converted to standard date type and then submit form.

Pull Request for Issue #16628 .

Summary of Changes

replace line 333 and change this code:

element.form.submit();

to

Joomla.submitform('" . $section . ".reload', element.form);

Testing Instructions

1- make sure you have more than two category for articles(com_content)
2- make sure you have at least a field for articles with context: com_content.article in com_fields
3- change back-end language to Persian(fa-IR).
4- go to Content > Articles. in Persian language the path is: محتوا > مطالب
5- edit an article and change category field value to another one.

Expected result

before this change:
after change category field value all calendar fields value change to empty.

after change code and replace line 333 with new one:
don`t show any error and fully reload page after ajax call and old calendar field values are show correctly.

resolve category field change event issue for calendar fields in Persian language joomla#16721
@infograf768
Copy link
Member

@DGT41
Please check this urgently as RC is tomorrow

@dgrammatiko
Copy link
Contributor

@infograf768 it seems reasonable but I cannot test it at the moment

@laoneo
Copy link
Member

laoneo commented Sep 4, 2017

I think you need to make sure that the core js file is loaded.

@joomla-cms-bot joomla-cms-bot changed the title Update fields.php [com_fields] Update fields.php Nov 7, 2017
@brianteeman
Copy link
Contributor

This was urgent in 2017 - has it been fixed elsewhere?

@farzadtaheri
Copy link
Contributor Author

@brianteeman, unfortunately not yet!

@ghost ghost added the J3 Issue label Apr 5, 2019
@ghost ghost removed the J3 Issue label Apr 19, 2019
@ghost ghost added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Jun 29, 2019
@coolcat-creations
Copy link
Contributor

Is this PR still to test?


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

@farzadtaheri
Copy link
Contributor Author

Do I have to do anything?

@Quy
Copy link
Contributor

Quy commented Apr 13, 2020

@farzadtaheri See your previous comment. #17859 (comment)

@farzadtaheri
Copy link
Contributor Author

@brianteeman, unfortunately not yet!

@farzadtaheri See your previous comment. #17859 (comment)

@Quy @brianteeman
I just started with Github and my original language is not English
So I may be misunderstood
I wrote the PR, which I tested it by myself and it works perfectly and solves the issue.
Do I need to do anything else to merage this PR? please Guide Me.

@laoneo
Copy link
Member

laoneo commented Apr 14, 2020

I'v posted it in the public testing glip group. Maybe we will get some testers.

@laoneo
Copy link
Member

laoneo commented Apr 14, 2020

Change looks fine for me.

@richard67 richard67 removed the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Apr 14, 2020
@richard67
Copy link
Member

@laoneo I've just tested this PR, but not really successful regarding the described issue.

Regardless if the PR is applied or not, and regardless is the backend language is Persian or English (GB), the published date changes when changing category of an article if the website time zone in Global Configuration is set to something else than UTC, and it doesn't change when the website time zone is UTC (without a time zone for the user set in all these cases).

This seems to be solved by PR #28596 instead (have to test that again with Persian backend language).

But this PR here seems to fix another issue: When the backend language is Persian and the PR is not applied and I change the category of an article, the toolbar and top menu bar disappear with the page reaload.
j3-error-no-toolbar-when-persian

When the PR is applied this doesn't happen. When backend language is English (GB), this also doesn't happen.

Can someone check and replicate my findings?

@richard67
Copy link
Member

With both PRs #28596 and this one here applied together, all is fine with any website time zone and with any backend language.

@infograf768
Copy link
Member

Can someone check and replicate my findings?

I confirm.
The errror is
Screen Shot 2020-04-14 at 10 57 10

It is solved by this PR.

@infograf768
Copy link
Member

I have tested this item ✅ successfully on b81c275


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

@richard67
Copy link
Member

I have tested this item ✅ successfully on b81c275

See my and @infograf768 's previous comments about details.


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 14, 2020
@infograf768
Copy link
Member

@HLeithner
Let's merge this one please for 3.9.17

@HLeithner HLeithner merged commit a2b5739 into joomla:staging Apr 14, 2020
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 14, 2020
@HLeithner
Copy link
Member

Thanks

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.

10 participants