Skip to content
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

Missing name when using the dropdown for location -> contacts #776

Closed
pieter-groeneweg opened this issue Mar 14, 2018 · 9 comments
Closed
Labels
1. to develop Accepted and waiting to be taken care of bug good first issue Small tasks with clear documentation about how and in which place you need to fix things in. Hacktoberfest
Milestone

Comments

@pieter-groeneweg
Copy link

pieter-groeneweg commented Mar 14, 2018

I am using nextcloud 13 on debian 8, lamp stack

I already menstioned in
#367 but it seems considered a bug:

When I add an location from the contacts list, let's say : Aunt Betsy.
When I type Au it starts showing Aunt Betsy in the dropdown. When I select, I only get to see the address being set. The name "Aunt Betsy" is left out.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@georgehrke georgehrke added 1. to develop Accepted and waiting to be taken care of bug labels Mar 14, 2018
@georgehrke georgehrke added this to the 1.6.3 milestone Mar 14, 2018
@georgehrke georgehrke added the good first issue Small tasks with clear documentation about how and in which place you need to fix things in. label Mar 14, 2018
@pieter-groeneweg
Copy link
Author

I take it that "Good First Issue" means something as something for beginners :)

I took a peak at the contactcontroller.php and in line 70 it shows:
$address = trim(preg_replace("/\n+/", "\n", str_replace(';', "\n", $address)));
I changed that to:
$address = $name . "\n" . trim(preg_replace("/\n+/", "\n", str_replace(';', "\n", $address)));

It appears to work. There probably is better or more consistent way, but still i liked to share..

@georgehrke
Copy link
Member

@pieter-groeneweg I would personally prefer to do it in javascript, but the result would be the same :)

@pieter-groeneweg
Copy link
Author

How do you mean with javascript.. it is the $name that is missing from the addresses in when selected in the locations dropdown. How do I make that visible using javascript?

@georgehrke
Copy link
Member

https://github.com/nextcloud/calendar/blob/v1.6.1/js/app/controllers/editorcontroller.js#L313

It would basically be item.name + newline + item.label

@georgehrke
Copy link
Member

Or better here already: https://github.com/nextcloud/calendar/blob/v1.6.1/js/app/controllers/editorcontroller.js#L303

location.name + "\n" + location.label

@pieter-groeneweg
Copy link
Author

so I was look for calendar/js/app/controllers/
I cannot get further than calendar/js/ and then the only folder is "public"...
Only showing app*.js and vendor*.js files
and I am sure I am on 1.6.1

Am I missing something important here... I installed/enabled through apps admin...?
Maybe I am doing something wrong?

@georgehrke
Copy link
Member

Yes, in order to change the javascript code you need to clone this git repository and run the make command to modify the javascript source code

@pieter-groeneweg
Copy link
Author

Then I need to install and set that up that first... :(
No other way of testing this?

@georgehrke georgehrke modified the milestones: 1.6.3, 2.0.0 beta1 Aug 27, 2018
@AasthaGupta
Copy link
Member

@georgehrke I'd like to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug good first issue Small tasks with clear documentation about how and in which place you need to fix things in. Hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants