fix small bugs
This commit is contained in:
parent
6a5f443f28
commit
5e4dcdd209
8 changed files with 72 additions and 58 deletions
|
|
@ -47,19 +47,22 @@ if ($low_action == "")
|
|||
//-----------------------------------------------------
|
||||
// Remove a card
|
||||
//-----------------------------------------------------
|
||||
if (isset($_POST['delete_card']))
|
||||
if (isset($_POST['action_fiche']))
|
||||
{
|
||||
if ($g_user->check_action(FICADD) == 0)
|
||||
if ( $_POST['action_fiche'] == 'delete_card')
|
||||
{
|
||||
alert('Vous ne pouvez pas enlever de fiche');
|
||||
return;
|
||||
if ($g_user->check_action(FICADD) == 0)
|
||||
{
|
||||
alert(_('Vous ne pouvez pas enlever de fiche'));
|
||||
return;
|
||||
}
|
||||
|
||||
$f_id = $_REQUEST['f_id'];
|
||||
|
||||
$fiche = new Manager($cn, $f_id);
|
||||
$fiche->remove();
|
||||
$low_action = "list";
|
||||
}
|
||||
|
||||
$f_id = $_REQUEST['f_id'];
|
||||
|
||||
$fiche = new Manager($cn, $f_id);
|
||||
$fiche->remove();
|
||||
$low_action = "list";
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue