ecrire/inc/modifier.php 1 location
|
@@ 145-147 (lines=3) @@
|
| 142 |
|
// TODO: ici aussi on peut valider les contenus |
| 143 |
|
// en fonction du type |
| 144 |
|
$champs = array(); |
| 145 |
|
foreach ($desc['field'] as $champ => $ignore) { |
| 146 |
|
if (isset($c[$champ])) { |
| 147 |
|
$champs[$champ] = $c[$champ]; |
| 148 |
|
} |
| 149 |
|
} |
| 150 |
|
|
ecrire/inc/editer.php 1 location
|
@@ 577-579 (lines=3) @@
|
| 574 |
|
// N'accepter que les champs qui existent |
| 575 |
|
// [TODO] ici aussi on peut valider les contenus en fonction du type |
| 576 |
|
$champs = array(); |
| 577 |
|
foreach ($desc['field'] as $champ => $ignore) { |
| 578 |
|
if (isset($c[$champ])) { |
| 579 |
|
$champs[$champ] = $c[$champ]; |
| 580 |
|
} |
| 581 |
|
} |
| 582 |
|
|