Hi!
I’m using:
latest SVN
I’d have some comments and propositions for addressbook.
First one is the possibility to organize contacts by location. If you click it organize that is shown is the same as if you are organizing by department. I was looking in the code and I found the line in class.addressbook_ui.inc.php, line 62; I’ve changed as it shows below.
‘org_name,adr_one_locality’ => lang(‘Organisations by location’),
‘org_name,adr_one_street’ => lang(‘Organisations by location’),
This is my suggestion to fix in the code.
Second thing is the question:
In the addressbook you have the feature to import CSV addressbook. I can do that without any problem as long as I’m not trying to import contact_id. Them it returns me the next error:
Invalid SQL: REPLACE INTO egw_addressbook (contact_owner,contact_private,n_family,n_given,n_prefix,n_suffix,n_fn,org_name,org_unit,contact_role,
adr_one_street,adr_one_locality,adr_one_postalcode,adr_one_countryname,contact_email,contact_modified,contact_modifier,,contact_id) VALUES (61662,0,'YXZ','ANDREJ',NULL,'med.','ANDREJ XYZ dr.dent.med.','ZDRAVSTVENI DOM','ZOBOZDRAVSTVO','ZDRAVNIKI','ZOBNA, 36','LJUBLJANA','1000','SLOVENIJA','andrej.xxytz@z.sda',1275901938,51430,'contact_etag=contact_etag+1',8557):
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'contact_id) VALUES (61662,0,'YXZ','ANDREJ',NULL,'med.','ANDREJ ' at line 1
It seems like there is a problem with query, because I get two commas before contact_id.
And for the last I’d like to ask how this REPLACE feature is working? You have two fields under the fields where you choose what you are importing, but I don’t know how to choose them correctly to get previously imported people rewritten and not added.
Regards.