Skip to content

Bug: set_checkbox, set_radio not working default true. #3228

Description

@yks118

Describe the bug
form_helper.php load and code write set_checkbox('field', 'value', true); return value ''.
not return ' checkbox="checked"'.

CodeIgniter 4 version
4.0.3
4.0.2 is work.

Affected module(s)
/system/Helpers/form_helper.php

Expected behavior, and steps to reproduce if appropriate
/app/Controllers/BaseController.php in form_helper.php load.
view folder write code.

var_dump(set_checkbox('field', 'value', true));

return value is ''.
method GET not POST.

Context

  • OS: Ubuntu 18.04
  • Web server: nginx/1.19.0
  • PHP version: PHP 7.4.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions