Fix: Echec validation fiche intervention
This commit is contained in:
parent
fadf293b31
commit
995bdcf45e
@ -65,7 +65,8 @@ if ($_GET["action"] == 'valid')
|
|||||||
{
|
{
|
||||||
$fichinter = new Fichinter($db);
|
$fichinter = new Fichinter($db);
|
||||||
$fichinter->id = $_GET["id"];
|
$fichinter->id = $_GET["id"];
|
||||||
$fichinter->valid($user->id, $conf->fichinter->outputdir);
|
$result=$fichinter->valid($user, $conf->fichinter->outputdir);
|
||||||
|
if ($result < 0) $mesg='<div class="error">'.$fichinter->error.'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST["action"] == 'add')
|
if ($_POST["action"] == 'add')
|
||||||
@ -213,7 +214,20 @@ if ($_GET["action"] == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("Description").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Description").'</td>';
|
||||||
print "<td><textarea name=\"note\" wrap=\"soft\" cols=\"60\" rows=\"15\"></textarea>";
|
print "<td>";
|
||||||
|
|
||||||
|
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_SOCIETE)
|
||||||
|
{
|
||||||
|
// Editeur wysiwyg
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
||||||
|
$doleditor=new DolEditor('note','',280,'dolibarr_notes','In',true);
|
||||||
|
$doleditor->Create();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<textarea name="note" wrap="soft" cols="70" rows="15"></textarea>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td colspan="2" align="center">';
|
print '<tr><td colspan="2" align="center">';
|
||||||
@ -270,9 +284,20 @@ if ($_GET["action"] == 'edit')
|
|||||||
|
|
||||||
// Description
|
// Description
|
||||||
print '<tr><td valign="top">'.$langs->trans("Description").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Description").'</td>';
|
||||||
print '<td><textarea name="note" wrap="soft" cols="60" rows="12">';
|
print '<td>';
|
||||||
print $fichinter->note;
|
|
||||||
print '</textarea>';
|
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_SOCIETE)
|
||||||
|
{
|
||||||
|
// Editeur wysiwyg
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
||||||
|
$doleditor=new DolEditor('note',$fichinter->note,280,'dolibarr_notes','In',true);
|
||||||
|
$doleditor->Create();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<textarea name="note" wrap="soft" cols="70" rows="12">'.$fichinter->note.'</textarea>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td colspan="2" align="center">';
|
print '<tr><td colspan="2" align="center">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user