? Pending

User tests: Successful: Unsuccessful:

avatar jctt1983
jctt1983
13 Nov 2015
  • force conversion to int of a value who might be of string type.
avatar jctt1983 jctt1983 - open - 13 Nov 2015
avatar jctt1983 jctt1983 - change - 13 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2015
Labels Added: ?
avatar brianteeman
brianteeman - comment - 13 Nov 2015

Please can you provide instructions on how to test this. What is the problem that can be observed before this and what is the expected result afterwards

avatar zero-24 zero-24 - change - 13 Nov 2015
Labels Added: ?
avatar jctt1983
jctt1983 - comment - 17 Nov 2015

hi brianteeman,

Basically the problem arises when you use a custom button at the backend of joomla

1) Create a "Validate" button in your view with this,
JToolBarHelper::custom('validate', 'arrow-right', 'arrow-right', JText::('Validate'), true);
$listSelect is True, so it will be checking a standard list.
2) Create the list in your view, with check-boxes on the side, (code preview)
<?php foreach ($this->items as $i => $item) :?>

<?php echo JHtml::
('grid.id', $i, $item->id); ?>
.
.
.

Ideally Joomla.isChecked, should be checking whether or not, there is at least one item checked in the list, and if there is at least one item checked then it will proceed with the execution of the action in the controller, via form submission.

3) Check just one item on the list, and then un-check the same item, and press the button created in step 1. It will let you execute the action in the controller, even though you don't have any items checked?

So the problem is that the code, is making a sum operation on strings.

I have Chrome Version 46.0.2490.86 m, also it happens on IE11 and Firefox 42.0.

avatar zero-24 zero-24 - change - 25 Nov 2015
Category JavaScript
avatar jctt1983
jctt1983 - comment - 28 Jan 2016

Hi @brianteeman
Is the instruction clear or does it need further clarification?

avatar brianteeman brianteeman - change - 29 Jan 2016
Labels Removed: ?
avatar Edu20 Edu20 - test_item - 1 Aug 2016 - Tested successfully
avatar Edu20
Edu20 - comment - 1 Aug 2016

I have tested this item successfully on e1e07a5

I have tested this patch with the Patch Tester 2.0.1 and was successfully applied.

Tested @icampus


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

avatar mehmetalipamukci mehmetalipamukci - test_item - 1 Aug 2016 - Tested unsuccessfully
avatar mehmetalipamukci
mehmetalipamukci - comment - 1 Aug 2016

I have tested this item ? unsuccessfully on e1e07a5

tested @icampus
cant reproduce the error, tested with firefox 47.0 and google chrome 52.0.2743.82 (64-bit)
I followed your instructions ,checked an item in a list (in the backend of joomla)then i unchecked the item, and after that, if i click on the created button (named "validate"), i got the Message "Please first make a selection from the list.". So there is no action executed.
I tested it also wit multiple checks / unchecks.


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

avatar wmchris wmchris - test_item - 2 Aug 2016 - Tested successfully
avatar wmchris
wmchris - comment - 2 Aug 2016

I have tested this item successfully on e1e07a5

Couldn't reproduce the problem, but the code review is fine @icampus


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

avatar brianteeman
brianteeman - comment - 2 Aug 2016

@wmchris without being able to replicate the problem I am reluctant to push this forward for merging.


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

avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Category JavaScript
avatar roland-d roland-d - change - 2 Aug 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-08-02 13:16:59
Closed_By roland-d
avatar roland-d roland-d - close - 2 Aug 2016
avatar roland-d
roland-d - comment - 2 Aug 2016

I am closing this issue because the issue has already been fixed in core. Thanks everybody.


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

Add a Comment

Login with GitHub to post a comment