r36822 - /trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php

Author: leithoff
New Revision: 36822

URL: http://svn.stylite.de/viewvc/egroupware?rev=36822&view=rev
Log:
addressbook/export: fix for headerline gets repeated multiple times, when export is set to no for addressbook, but user is exemted from limitations

Modified:
trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php

Modified: trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php?rev=36822&r1=36821&r2=36822&view=diff

— trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php (original)
+++ trunk/addressbook/inc/class.addressbook_export_contacts_csv.inc.php Wed Oct 5 14:09:00 2011
@@ -40,7 +40,8 @@

	// Addressbook defines its own export imits
	$limit_exception = bo_merge::is_export_limit_excepted();
  •   $export_limit = $export_object->export_limit = bo_merge::getExportLimit($app='addressbook');
    
  •   $export_limit = bo_merge::getExportLimit($app='addressbook');
    
  •   if (!$limit_exception) $export_object->export_limit = $export_limit; // we may not need that after all
      if($export_limit == 'no' && !$limit_exception) {
      	return;
      }
    

@@ -69,6 +70,7 @@
if(bo_merge::hasExportLimit($export_limit) && !$limit_exception) {
$selection = array_slice($selection, 0, $export_limit);
}
+
if($options[‘explode_multiselects’]) {
$customfields = config::get_customfields(‘addressbook’);
$additional_fields = array();
@@ -202,11 +204,11 @@
if($options[‘convert’]) {
importexport_export_csv::convert($contact, addressbook_egw_record::$types, ‘addressbook’);
} else {

  •                            // Implode arrays, so they don't say 'Array'
    
  •                            foreach($contact->get_record_array() as $key => $value) {
    
  •                                    if(is_array($value)) $contact->$key = implode(',', $value);
    
  •                            }
    
  •                    }
    
  •   		// Implode arrays, so they don't say 'Array'
    
  •   		foreach($contact->get_record_array() as $key => $value) {
    
  •   			if(is_array($value)) $contact->$key = implode(',', $value);
    
  •   		}
    
  •   	}
    
      	$export_object->export_record($contact);
      	unset($contact);
    

All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs