? Success

User tests: Successful: Unsuccessful:

avatar bahl24
bahl24
6 Feb 2019

Signed-off-by: Nitish Bahl nitishbahl24@gmail.com

Pull Request for Issue #23781 .

Summary of Changes

Added class custom-select-color-state.

Expected result

screenshot from 2019-02-06 21-43-43

Actual result

The values of different options is wrong due to which no color is displayed.
screenshot from 2019-02-06 22-06-34

Documentation Changes Required

no

avatar bahl24 bahl24 - open - 6 Feb 2019
avatar bahl24 bahl24 - change - 6 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Feb 2019
Category Administration com_content
avatar bahl24
bahl24 - comment - 6 Feb 2019

I am facing difficulty in how to change the values of options, I tried adding-
<option value="1">JPUBLISHED</option> <option value="0">JUNPUBLISHED</option> <option value="2">JARCHIVED</option> <option value="-2">JTRASHED</option>
but the form stops working as administrator/components/com_content/Model/ArticleModel.php is expecting transition value.
Anyone has any idea about how to change value of options as I have already added the class which decides color?

avatar bahl24 bahl24 - change - 6 Feb 2019
The description was changed
avatar bahl24 bahl24 - edited - 6 Feb 2019
avatar bahl24
bahl24 - comment - 6 Feb 2019
avatar alikon
alikon - comment - 6 Feb 2019

the xml field in this case is of type="transition" and not type="list"
I would watch at https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Form/Field/TransitionField.php

avatar dgrammatiko
dgrammatiko - comment - 6 Feb 2019

You have to adjust https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_src/system/js/fields/select-colour.es6.js
so it handles the values of the NEW transition system...

avatar bahl24
bahl24 - comment - 6 Feb 2019

@dgrammatiko In that file, the color is decided by the value only and as shown in the pic under actual result above, the current values are wrong.

avatar dgrammatiko
dgrammatiko - comment - 6 Feb 2019

@bahl24 exactly, that script was designed for the pre-transitions era. It needs to be refactored. Hint probably the select element needs to have a data attribute to make the distinction of plain select and the ones that used in the transitions. Should be very easy to patch...

avatar HLeithner HLeithner - change - 6 Feb 2019
Title
fix #23781 wrong color of edit article
[4.0] fix #23781 wrong color of edit article
avatar HLeithner HLeithner - edited - 6 Feb 2019
avatar bahl24
bahl24 - comment - 8 Feb 2019

@dgrammatiko @alikon
How can I add an attribute to the options select element. The transitionField.php returns this-
screenshot from 2019-02-08 11-35-46
On choosing value changes but on saving the form the value field is ' ', No matter what option is selected publish/archive/unpublish
screenshot from 2019-02-07 18-31-51
I added data-type="published" in article.xml but it is not added in select element.
So based on which condition should JS file differentiate?

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[4.0] fix #23781 wrong color of edit article
[4.0] fix wrong color of edit article
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar bahl24 bahl24 - change - 19 Apr 2019
Labels Removed: J4 Issue
avatar brianteeman
brianteeman - comment - 19 Apr 2019

I have tested this item ? unsuccessfully on 4b7741d

Doesn't change anything


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

avatar brianteeman
brianteeman - comment - 19 Apr 2019

I have tested this item ? unsuccessfully on 4b7741d

Doesn't change anything


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

avatar brianteeman brianteeman - test_item - 19 Apr 2019 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 19 Apr 2019

This is very out of date with the current branch.

avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2019
Closed_Date 2019-05-04 18:43:56 2019-05-04 18:43:57
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 4 May 2019
avatar Quy Quy - change - 4 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-04 18:43:56
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 May 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23782

avatar Quy
Quy - comment - 4 May 2019

Closing for now until there is a proper fix.


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

Add a Comment

Login with GitHub to post a comment