-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone Profile issue on version .17 #122
Comments
same here! |
hello, it seems that the problem is in this code block
if (isset($input["managed_domainrecordtypes"])) {
$input["managed_domainrecordtypes"] = exportArrayToDB(
ArrayNormalizer::normalizeValues($input["managed_domainrecordtypes"], 'intval')
);
} when trying to clone a profile, the field As a hotfix, commenting out the code block // Manage NULL fields in original
foreach($input as $k => $v) {
if (is_null($input[$k])) {
$input[$k] = "NULL";
}
} in |
I'm having the same issue. I tried to do the fix but in my case did not work (or I did something wrong). I edited the In my case my original code was:
I change to
If someone else has another tip, will be great |
use // for comments on every line
|
Worked for me, it's possible merge this solution in next release? |
Hello,
an issue appears when a profile is cloned on version .17.
Here is the output log:
[2024-11-10 11:31:00] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Glpi\Toolbox\ArrayNormalizer::normalizeValues(): Argument #1 ($array) must be of type array, string given, called in /var/www/html/glpi/src/Profile.php on line 520 in /var/www/html/glpi/src/Toolbox/ArrayNormalizer.php at line 40
Backtrace :
src/Profile.php:520 Glpi\Toolbox\ArrayNormalizer::normalizeValues()
src/CommonDBTM.php:1305 Profile->prepareInputForAdd()
marketplace/behaviors/inc/common.class.php:213 CommonDBTM->add()
marketplace/behaviors/front/common.form.php:38 PluginBehaviorsCommon::cloneItem()
public/index.php:82 require()
Best Regards,
Domagoj
The text was updated successfully, but these errors were encountered: