Nom du bouton en conflit avec une valeur du formulaire

This commit is contained in:
Michael RICOIS 2010-07-01 16:35:40 +00:00
parent 6c0bfd0af7
commit 28187f207b

View File

@ -133,7 +133,7 @@ if(isset($_REQUEST['action']))
case 'privileges':
if(!empty($_REQUEST['email']))
{
if (in_array('SprivSurv',$_REQUEST['privileges']['type'])){
if ( in_array('SprivSurv',$_REQUEST['privileges']['type']) ){
try {
$O = $client->setSurveillance(
$_REQUEST['siret'],$_REQUEST['email'],
@ -146,7 +146,6 @@ if(isset($_REQUEST['action']))
}
$key = array_search('SprivSurv', $_REQUEST['privileges']['type']);
if ($key!==FALSE) unset($_REQUEST['privileges']['type'][$key]);
FB::log($_REQUEST['privileges']['type'], 'type');
if (count($_REQUEST['privileges']['type'])>0){
$privileges = join(', ', $_REQUEST['privileges']['type']);
$privilegesLog = join('-', $_REQUEST['privileges']['type']);
@ -424,7 +423,7 @@ if(!$disponible)
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" name="privileges" value="Valider" class="button"></div>
<div class="field"><input type="submit" name="submit" value="Valider" class="button"></div>
</div>
</div>