Skip to content
Snippets Groups Projects
Commit da779e3e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add createFromClone function in skeleton

parent 2a6ad769
Branches
Tags
No related merge requests found
...@@ -34,7 +34,7 @@ For translators: ...@@ -34,7 +34,7 @@ For translators:
in UTF8. in UTF8.
For developers: For developers:
- Update skeletons. - Update skeletons (fixes and add function createFromClass).
- Add an experimental Cash Desk module. - Add an experimental Cash Desk module.
- Added new triggers events in agenda module. - Added new triggers events in agenda module.
- All submodules are moved in the includes directory. - All submodules are moved in the includes directory.
...@@ -43,6 +43,7 @@ For developers: ...@@ -43,6 +43,7 @@ For developers:
and add a different value in an HTML id for each entry. This allows and add a different value in an HTML id for each entry. This allows
to build skins that use different style for each menu entry. to build skins that use different style for each menu entry.
***** Changelog for 2.4 compared to 2.2 ***** ***** Changelog for 2.4 compared to 2.2 *****
For users: For users:
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
*/ */
/** /**
\file dev/skeletons/build_class_from_table.php * \file dev/skeletons/build_class_from_table.php
\ingroup core * \ingroup core
\brief Create a complete class file from a table in database * \brief Create a complete class file from a table in database
\version $Id$ * \version $Id$
*/ */
// Test if batch mode // Test if batch mode
......
...@@ -303,10 +303,9 @@ class Skeleton_class // extends CommonObject ...@@ -303,10 +303,9 @@ class Skeleton_class // extends CommonObject
/** /**
* \brief Load an object from its id and create a new one in database * \brief Load an object from its id and create a new one in database
* \param fromid Id of object to clone * \param fromid Id of object to clone
* \param invertdetail Reverse sign of amounts for lines
* \return int New id of clone * \return int New id of clone
*/ */
function createFromClone($fromid,$invertdetail=0) function createFromClone($fromid)
{ {
global $user,$langs; global $user,$langs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment