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

History ICal export refers to ecs.soton in all entries #42

Closed
jesusbagpuss opened this issue Feb 5, 2020 · 6 comments
Closed

History ICal export refers to ecs.soton in all entries #42

jesusbagpuss opened this issue Feb 5, 2020 · 6 comments

Comments

@jesusbagpuss
Copy link
Contributor

$r.="UID:history.".$dataobj->get_value( 'historyid' )."\@ecs.soton.ac.uk\n";

should use something like $self->{session}->config( "host" ); (or securehost?)

@drn05r drn05r closed this as completed in 519c08d Feb 5, 2020
@drn05r
Copy link
Contributor

drn05r commented Feb 5, 2020

Hi John,

If you could try this changeset or apply it as a patch to test that would be useful, as it does not link into anything I can easier make use of to test it works as expected. That said the change is rather simple, so should just work.

Thanks

David Newman

@jesusbagpuss
Copy link
Contributor Author

Hi David,
I don't actually have a 3.4 instance running. I noticed this on our 3.3 instance - but thought (seeing as it's not a bad issue (I'd put it more at a typo level), it wasn't worth fixing in 3.3!

Cheers,
John

@drn05r
Copy link
Contributor

drn05r commented Feb 5, 2020

I am not aware of any code in 3.3. or 3.4 that integrates with this plugin. If you have some code even for 3.3, that does integrate that you could send me it would allow me to properly test my change.

@jesusbagpuss
Copy link
Contributor Author

If you do a 'history search', there's an option to export the result set as a History iCal. I tried using this today (for the first time ever I think), which is when I spotted it...

To validate this fix, run the above, and the resultant iCal file will contain the hostname, rather than .ecs.soton... (unless you're testing on a report with a host of ecs.soton... :o)

@jesusbagpuss
Copy link
Contributor Author

NB a visual inspection of your code looks spot-on!

@drn05r
Copy link
Contributor

drn05r commented Feb 5, 2020

Obviously, history search! I have tested and it looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants