User tests: Successful: Unsuccessful:
Checkbox field does not allow defining a value without being checked
#6712
For easiest test use this custom component: https://github.com/Devportobello/joomla-attach-PR-6794
First sry for my bad english, will try my best.
Dunno if we can test with something actually in Joomla, so if you want you can install my custom component then go to frontend "www.yourdomain.com/?option=com_test"
Test1
Uncheck all checkbox then submit
-> Checkbox 1 with default and checkbox 2 with default are checked
Test2
Patch with the fix,
Uncheck all checkbox then submit
-> All checkbox are unchecked
JForm::loadField
-> $field->setup($element, $value, $group) with value = $value or $default
Then
JFormFieldCheckbox::setup
-> empty($this->value) || $this->checked ? null : $this->checked = true;
Title |
|
Rel_Number | ⇒ | 6712 | |
Relation Type | ⇒ | Pull Request for |
Labels |
Added:
?
|
Labels |
Removed:
?
|
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
The goal is to have a checkbox that not just sends a value 0 or 1 if it's un/checked but an own value like somevalue.
Test instructions:
default="somevalue"
. Expected: No checkbox is checked when you open com_test first time.
All checkboxes are checked after reload but only 2 should be checked.
Apply patch: Test again.
But see also comment by @infograf768
#6712 (comment)
that fixes #6712 by using field type checkboxes instead of field type checkbox.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC based on tests. Thanks
Labels |
Added:
?
|
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Removed: |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-11 15:13:17 |
Closed_By | ⇒ | rdeutz |
Labels |
Added:
?
Removed: ? |
@Devportobello sorry I'm not exactly sure what I need to test? Can you provide a step to step non technical testinstruktion? Thanks