Fix: bug #21892 : ajout de catégorie impossible via IE7, fckeditor actif
This commit is contained in:
parent
2c0755e1a1
commit
3c48737a2e
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
*
|
*
|
||||||
@ -50,7 +50,6 @@ if ($_REQUEST['origin'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -144,7 +143,7 @@ if ($user->rights->categorie->creer)
|
|||||||
print $categorie->error;
|
print $categorie->error;
|
||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
print '<form action="fiche.php?type='.$_GET['type'].'" method="post">';
|
print '<form action="'.$_SERVER['PHP_SELF'].'?type='.$_GET['type'].'" method="post">';
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print '<input type="hidden" name="addcat" value="addcat">';
|
print '<input type="hidden" name="addcat" value="addcat">';
|
||||||
print '<input type="hidden" name="type" value='.$_GET['type'].'>';
|
print '<input type="hidden" name="type" value='.$_GET['type'].'>';
|
||||||
@ -153,10 +152,10 @@ if ($user->rights->categorie->creer)
|
|||||||
print '<input type="hidden" name="origin" value='.$_REQUEST['origin'].'>';
|
print '<input type="hidden" name="origin" value='.$_REQUEST['origin'].'>';
|
||||||
}
|
}
|
||||||
print '<input type="hidden" name="nom" value="'.$nom.'">';
|
print '<input type="hidden" name="nom" value="'.$nom.'">';
|
||||||
print '<input type="hidden" name="description" value="'.$description.'">';
|
|
||||||
print_fiche_titre($langs->trans("CreateCat"));
|
print_fiche_titre($langs->trans("CreateCat"));
|
||||||
|
|
||||||
print '<table class="border" width="100%" class="notopnoleftnoright">';
|
print '<table width="100%" class="border">';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td width="25%">'.$langs->trans("Ref").'</td><td><input name="nom" size="25" value="'.$categorie->label.'">';
|
print '<td width="25%">'.$langs->trans("Ref").'</td><td><input name="nom" size="25" value="'.$categorie->label.'">';
|
||||||
print'</td></tr>';
|
print'</td></tr>';
|
||||||
@ -183,14 +182,14 @@ if ($user->rights->categorie->creer)
|
|||||||
print $html->selectyesno("visible", 1,1);
|
print $html->selectyesno("visible", 1,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr><td colspan="2" align="center">';
|
print '<tr><td colspan="2" align="center">';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("CreateThisCat").'" name="creation" id="creation" />';
|
print '<input type="submit" class="button" value="'.$langs->trans("CreateThisCat").'" name="creation" />';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Cancel").'" name="cancel" />';
|
print '<input type="submit" class="button" value="'.$langs->trans("Cancel").'" name="cancel" />';
|
||||||
print '</td></tr></form>';
|
print '</td></tr>';
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
print '</form>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user