From a09a2ca5c57a18ce36268e35dda4f4253db65815 Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 22 Jul 2009 11:13:33 +0000 Subject: [PATCH] Use get_attribute for FAItemplateFile if it exists in the object, because it can be binary and would otherwise be damaged. (Trac: #2983) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13944 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-plugins/fai/admin/fai/class_FAI.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc index bb0e295e5..a15326022 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -524,6 +524,11 @@ class FAI $parent_attrs['FAIstate'] = $rTag; /* Don't copy over subobjects in subreleases if their parent is in "removed" state */ if(!FAI::parent_is_removed($key)){ + /* FAItemplateFile can be binary, therefore it needs to be fetched with + * $ldap->get_attribute */ + if (isset($parent_attrs['FAItemplateFile'])) { + $parent_attrs['FAItemplateFile'] = $ldap->get_attribute($parent_obj, 'FAItemplateFile'); + } if(DEBUG_FAI_FUNC) { echo "Copy current objects original attributes to next release ".$key; print_a($parent_attrs); -- 2.30.2