User tests: Successful: Unsuccessful:
Introduce an option that will provide the needed backwards compatibility.
Apply patch
Bootstrap mode
Test creating a new article and ensure that the field for selecting a user still works.
Mixed mode
Edit administrator/components/com_content/views/article/tmpl/edit.php
and paste the code bellow after line 81 (just before ?>
)
JHtml::_('behavior.modal');
$idTag = 'jform_name';
$test_control[] = '<input type="text" disabled id="' .$idTag . '_id" name="' . $idTag . '" value="" style="display: block"/>';
$test_control[] = '<a class="modal btn" title="XXXXX" href="index.php?option=com_users&view=users&layout=modal&tmpl=component&required=1&field=jform_name"'
. ' rel="{handler: \'iframe\', size: {x: 800, y: 500}}">SELECT MOOTOOLS</a>';
echo implode('', $test_control);
Test again the previous scenario as well as the new button that will appear above the tabs (that's a mootools modal). The field should be filled with the user id selected in the pop up
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Title |
|
Title |
|
I have tested this item
In compatibility mode (with override removed from Isis, and so in mootools modal) the no-user
is broken (but it was a "not" visible issue before excepted when tested B/C after layout removal).
I fix this here : https://github.com/joomla/joomla-cms/pull/10772/files#diff-8369fe928ed3e29986d8f380ed245ef2R52 (missing window.parent.jSelectUser(this)
on click for no user button)
Another issue (but was there before, so not due to your PR, but could be fixed in the same time) : in all testing cases, if you select no user, you will have the text "Select a user." as the field user name value
, where it should be just a placeholder
.
But this needs i think, to add this in fielduser.js
to set placeholder, and set name as empty.
About your code, after tests all seems good!
This PR has received new commits.
CC: @Fedik
This PR has received new commits.
CC: @Fedik
Category | ⇒ | Fields |
I have tested this item
Tested Successfully in Joomla! 3.6.0-rc.
I have tested this item
Successfully Tested.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-16 19:07:18 |
Closed_By | ⇒ | roland-d |
Labels |
Removed:
?
|
@Fedik can you review this one as well?