User tests: Successful: Unsuccessful:
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Labels |
Added:
?
|
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.
Category | ⇒ | JavaScript |
Hi @brianteeman
Is the instruction clear or does it need further clarification?
Labels |
Removed:
?
|
I have tested this item
I have tested this patch with the Patch Tester 2.0.1 and was successfully applied.
Tested @icampus
I have tested this item
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.
I have tested this item
Couldn't reproduce the problem, but the code review is fine @icampus
@wmchris without being able to replicate the problem I am reluctant to push this forward for merging.
Category | JavaScript | ⇒ |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-02 13:16:59 |
Closed_By | ⇒ | roland-d |
I am closing this issue because the issue has already been fixed in core. Thanks everybody.
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