? ? Success

User tests: Successful: Unsuccessful:

avatar farzadtaheri
farzadtaheri
4 Sep 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.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2017
Category Administration com_fields
avatar farzadtaheri farzadtaheri - open - 4 Sep 2017
avatar farzadtaheri farzadtaheri - change - 4 Sep 2017
Status New Pending
avatar infograf768
infograf768 - comment - 4 Sep 2017

@dgt41
Please check this urgently as RC is tomorrow

avatar dgrammatiko
dgrammatiko - comment - 4 Sep 2017

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

avatar laoneo
laoneo - comment - 4 Sep 2017

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

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Title
Update fields.php
[com_fields] Update fields.php
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2017
Title
Update fields.php
[com_fields] Update fields.php
avatar brianteeman
brianteeman - comment - 18 Aug 2018

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

avatar farzadtaheri farzadtaheri - change - 20 Aug 2018
Labels Added: ?
avatar farzadtaheri
farzadtaheri - comment - 20 Aug 2018

@brianteeman, unfortunately not yet!

avatar coolcat-creations
coolcat-creations - comment - 9 Apr 2020

Is this PR still to test?


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

avatar farzadtaheri
farzadtaheri - comment - 13 Apr 2020

Do I have to do anything?

avatar Quy
Quy - comment - 13 Apr 2020

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

avatar farzadtaheri
farzadtaheri - comment - 14 Apr 2020

@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.

avatar laoneo
laoneo - comment - 14 Apr 2020

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

avatar laoneo
laoneo - comment - 14 Apr 2020

Change looks fine for me.

avatar richard67
richard67 - comment - 14 Apr 2020

@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?

avatar richard67
richard67 - comment - 14 Apr 2020

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

avatar infograf768
infograf768 - comment - 14 Apr 2020

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.

avatar infograf768
infograf768 - comment - 14 Apr 2020

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.

avatar infograf768 infograf768 - test_item - 14 Apr 2020 - Tested successfully
avatar richard67
richard67 - comment - 14 Apr 2020

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.

avatar richard67 richard67 - test_item - 14 Apr 2020 - Tested successfully
avatar richard67 richard67 - change - 14 Apr 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 14 Apr 2020

RTC


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

avatar infograf768
infograf768 - comment - 14 Apr 2020

@HLeithner
Let's merge this one please for 3.9.17

avatar HLeithner HLeithner - change - 14 Apr 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-14 14:56:40
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 14 Apr 2020
avatar HLeithner HLeithner - merge - 14 Apr 2020
avatar HLeithner
HLeithner - comment - 14 Apr 2020

Thanks

Add a Comment

Login with GitHub to post a comment