Fix: no source object
This commit is contained in:
parent
057d462a7a
commit
efc15bd31b
@ -218,12 +218,8 @@ if ($action == 'create')
|
|||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="border" valign="top">'.$langs->trans('NotePublic').'</td>';
|
print '<td class="border" valign="top">'.$langs->trans('NotePublic').'</td>';
|
||||||
print '<td valign="top" colspan="2">';
|
print '<td valign="top" colspan="2">';
|
||||||
print '<textarea name="note_public" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
print '<textarea name="note_public" wrap="soft" cols="70" rows="'.ROWS_3.'"></textarea>';
|
||||||
if (is_object($objectsrc)) // Take value from source object
|
print '</td></tr>';
|
||||||
{
|
|
||||||
print $objectsrc->note_public;
|
|
||||||
}
|
|
||||||
print '</textarea></td></tr>';
|
|
||||||
|
|
||||||
// Private note
|
// Private note
|
||||||
if (! $user->societe_id)
|
if (! $user->societe_id)
|
||||||
@ -231,12 +227,8 @@ if ($action == 'create')
|
|||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="border" valign="top">'.$langs->trans('NotePrivate').'</td>';
|
print '<td class="border" valign="top">'.$langs->trans('NotePrivate').'</td>';
|
||||||
print '<td valign="top" colspan="2">';
|
print '<td valign="top" colspan="2">';
|
||||||
print '<textarea name="note_private" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
print '<textarea name="note_private" wrap="soft" cols="70" rows="'.ROWS_3.'"></textarea>';
|
||||||
if (is_object($objectsrc)) // Take value from source object
|
print '</td></tr>';
|
||||||
{
|
|
||||||
print $objectsrc->note_private;
|
|
||||||
}
|
|
||||||
print '</textarea></td></tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user