Overview
Comment:Correction bug champs checkbox qui ne sont pas cochables signalé par @arf
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fe2d81f9d1dedc6d9eccc3ae937be799f19d359e
User & Date: bohwaz on 2013-04-08 14:28:48
Other Links: manifest | tags
Context
2013-04-08
14:29
Publication de correction de 2 bugs check-in: e62c8e438f user: bohwaz tags: trunk, stable, 0.5.2
14:28
Correction bug champs checkbox qui ne sont pas cochables signalé par @arf check-in: fe2d81f9d1 user: bohwaz tags: trunk
14:24
Correction bugs sur la page "mes infos" signalés par @arf check-in: 86f63ea383 user: bohwaz tags: trunk
Changes

Modified include/lib.template.php from [8b6b48ef7d] to [adf522bd76].

438
439
440
441
442
443
444
445
446


447



448
449
450
451
452
453
454
    }
    elseif ($type == 'textarea')
    {
        $field .= '<textarea ' . $attributes . 'cols="30" rows="5">' . $value . '</textarea>';
    }
    else
    {
        if ($type == 'checkbox' && !empty($value))
        {


            $attributes .= 'checked="checked" ';



        }

        $field .= '<input type="' . $type . '" ' . $attributes . ' value="' . $value . '" />';
    }

    $out = '
    <dt>';







|

>
>
|
>
>
>







438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
    }
    elseif ($type == 'textarea')
    {
        $field .= '<textarea ' . $attributes . 'cols="30" rows="5">' . $value . '</textarea>';
    }
    else
    {
        if ($type == 'checkbox')
        {
            if (!empty($value))
            {
                $attributes .= 'checked="checked" ';
            }

            $value = '1';
        }

        $field .= '<input type="' . $type . '" ' . $attributes . ' value="' . $value . '" />';
    }

    $out = '
    <dt>';