Skip to content

Commit

Permalink
Maj squelette
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 14, 2014
1 parent c17f5e7 commit c79fc51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/skeletons/skeleton_page.php
Expand Up @@ -63,7 +63,7 @@

// Load object if id or ref is provided as parameter
$object=new Skeleton_Class($db);
if (($id || $ref) && $action != 'add')
if (($id > 0 || ! empty($ref)) && $action != 'add')
{
$result=$object->fetch($id,$ref);
if ($result < 0) dol_print_error($db);
Expand Down
4 changes: 3 additions & 1 deletion htdocs/core/tpl/notes.tpl.php
Expand Up @@ -22,6 +22,7 @@
$note_private = 'note_private';

$colwidth=(isset($colwidth)?$colwidth:25);

$permission=(isset($permission)?$permission:(isset($user->rights->$module->creer)?$user->rights->$module->creer:0)); // If already defined by caller page
$moreparam=(isset($moreparam)?$moreparam:'');
$value_public=$object->note_public;
Expand Down Expand Up @@ -59,8 +60,9 @@
elseif ($module == 'shipping') { $permission=$user->rights->expedition->creer;}
//else dol_print_error('','Bad value '.$module.' for param module');

if (! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:100';
if (! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:100'; // Rem: This var is for all notes, not only thirdparties note.
else $typeofdata='textarea:12:100';

?>

<!-- BEGIN PHP TEMPLATE NOTES -->
Expand Down

0 comments on commit c79fc51

Please sign in to comment.