From fc7b88e5e6e77182e6c06aea2818ed37fae6c954 Mon Sep 17 00:00:00 2001 From: Inovea Conseil Date: Tue, 29 May 2018 23:04:35 +0200 Subject: [PATCH] Fix missing substitution Missing substitution for object --- htdocs/modulebuilder/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index c46d76ce4ba..e844793b601 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1,5 +1,6 @@ + * Copyright (C) 2018 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -398,7 +399,8 @@ if ($dirins && $action == 'initobject' && $module && $objectname) 'Mon module'=>$module, 'htdocs/modulebuilder/template/'=>strtolower($modulename), 'myobject'=>strtolower($objectname), - 'MyObject'=>$objectname + 'MyObject'=>$objectname, + 'MYOBJECT'=>strtoupper($objectname) ); $result=dolReplaceInFile($phpfileval['fullname'], $arrayreplacement);