Overview
SHA1:fe2d81f9d1dedc6d9eccc3ae937be799f19d359e
Date: 2013-04-08 14:28:48
User: bohwaz
Comment:Correction bug champs checkbox qui ne sont pas cochables signalé par @arf
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2013-04-08
14:29
[e62c8e438f] Publication de correction de 2 bugs (user: bohwaz, tags: trunk, stable, 0.5.2)
14:28
[fe2d81f9d1] Correction bug champs checkbox qui ne sont pas cochables signalé par @arf (user: bohwaz, tags: trunk)
14:24
[86f63ea383] Correction bugs sur la page "mes infos" signalés par @arf (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>';