From: psc Date: Wed, 22 Jul 2009 11:13:33 +0000 (+0000) Subject: Use get_attribute for FAItemplateFile if it exists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a09a2ca5c57a18ce36268e35dda4f4253db65815;p=gosa.git 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 --- 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);