Skip to content

Commit

Permalink
Fix: [ bug #533 ]
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Sep 6, 2012
1 parent 282d9c9 commit 210662d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/fichinter/fiche.php
Expand Up @@ -263,7 +263,7 @@
// Add line
else if ($action == "addline" && $user->rights->ficheinter->creer)
{
if (!GETPOST('np_desc','alpha'))
if (!GETPOST('np_desc'))
{
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Description")).'</div>';
$error++;
Expand All @@ -280,7 +280,7 @@
$ret=$object->fetch($id);
$object->fetch_thirdparty();

$desc=GETPOST('np_desc','alpha');
$desc=GETPOST('np_desc');
$date_intervention = dol_mktime(GETPOST('dihour','int'), GETPOST('dimin','int'), 0, GETPOST('dimonth','int'), GETPOST('diday','int'), GETPOST('diyear','int'));
$duration = convertTime2Seconds(GETPOST('durationhour','int'), GETPOST('durationmin','int'));

Expand Down Expand Up @@ -353,7 +353,7 @@
}
$object->fetch_thirdparty();

$desc = GETPOST('np_desc','alpha');
$desc = GETPOST('np_desc');
$date_inter = dol_mktime(GETPOST('dihour','int'), GETPOST('dimin','int'), 0, GETPOST('dimonth','int'), GETPOST('diday','int'), GETPOST('diyear','int'));
$duration = convertTime2Seconds(GETPOST('durationhour','int'),GETPOST('durationmin','int'));

Expand Down

0 comments on commit 210662d

Please sign in to comment.